From: Stephan Bosch Date: Fri, 12 May 2017 02:23:10 +0000 (+0200) Subject: lib-http: server: Fixed detection of idle connection. X-Git-Tag: 2.3.0.rc1~1613 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=355b675a092094a9cb6cd4ae196ddef73f11436c;p=thirdparty%2Fdovecot%2Fcore.git lib-http: server: Fixed detection of idle connection. This fixes the debug message; the behavior was otherwise correct. --- diff --git a/src/lib-http/http-server-connection.c b/src/lib-http/http-server-connection.c index 9d80331d23..5144b4e219 100644 --- a/src/lib-http/http-server-connection.c +++ b/src/lib-http/http-server-connection.c @@ -839,7 +839,7 @@ http_server_connection_next_response(struct http_server_connection *conn) return FALSE; req = conn->request_queue_head; - if (req == NULL) { + if (req == NULL || req->state == HTTP_SERVER_REQUEST_STATE_NEW) { /* no requests pending */ http_server_connection_debug(conn, "No more requests pending"); http_server_connection_timeout_start(conn);