kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 3b30920a60f0e420738269287c21fd9a24df8530
parent ce729010f708548730a172e4fddd7637439dbadc
Author: Joris Vink <joris@coders.se>
Date:   Sat,  4 May 2013 21:03:53 +0200

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.

Diffstat:
src/http.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/http.c b/src/http.c @@ -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);