aboutsummaryrefslogtreecommitdiff
path: root/httpd/server_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'httpd/server_http.c')
-rw-r--r--httpd/server_http.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/httpd/server_http.c b/httpd/server_http.c
index b69805a..4ea20ab 100644
--- a/httpd/server_http.c
+++ b/httpd/server_http.c
@@ -615,10 +615,13 @@ server_read_httpchunks(struct bufferevent *bev, void *arg)
}
void
-server_reset_http(struct client *clt)
+server_reset_http(struct client *clt, const char *from)
{
struct server *srv = clt->clt_srv;
+ log_debug("%s: called from %s", __func__, from);
+ clt->clt_persist_running = NULL;
+
server_log(clt, NULL);
server_httpdesc_free(clt->clt_descreq);
@@ -1092,6 +1095,10 @@ server_response(struct httpd *httpd, struct client *clt)
clt->clt_persist = 0;
}
+ if (clt->clt_persist_running)
+ log_warnx("%s: request %d in %s not finished",
+ __func__, clt->clt_persist, clt->clt_persist_running);
+
if (clt->clt_persist >= srv_conf->maxrequests)
clt->clt_persist = 0;