forked from mirrors/kore
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:
parent
ce729010f7
commit
3b30920a60
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue