for now, until we properly handle a persistent HTTP connection for non spdy clients make sure we close the connection after handling the HTTP request.

This commit is contained in:
Joris Vink 2013-05-04 21:03:53 +02:00
parent ce729010f7
commit 3b30920a60
1 changed files with 5 additions and 2 deletions

View File

@ -246,10 +246,13 @@ http_process(void)
else
r = hdlr(req);
if (r != KORE_RESULT_ERROR)
if (r != KORE_RESULT_ERROR) {
net_send_flush(req->owner);
else
if (req->owner->proto == CONN_PROTO_HTTP)
kore_server_disconnect(req->owner);
} else {
kore_server_disconnect(req->owner);
}
TAILQ_REMOVE(&http_requests, req, list);
http_request_free(req);