kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 1507f88ec79284d9adf917e1c9ae9de5ca0c493f
parent 6d902914057481ad05c20a3acb25ea03f7d29b8e
Author: Joris Vink <joris@coders.se>
Date:   Fri,  6 Feb 2015 10:59:15 +0100

Respect keepalive when throwing HTTP errors.

Report from github issue #34

Diffstat:
src/http.c | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/http.c b/src/http.c @@ -1131,10 +1131,6 @@ http_error_response(struct connection *c, struct spdy_stream *s, int status) { kore_debug("http_error_response(%p, %p, %d)", c, s, status); - c->flags |= CONN_READ_BLOCK; - c->flags |= CONN_CLOSE_EMPTY; - c->flags &= ~CONN_READ_POSSIBLE; - switch (c->proto) { case CONN_PROTO_SPDY: http_response_spdy(NULL, c, s, status, NULL, 0);