]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: server: Fixed detection of idle connection.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 12 May 2017 02:23:10 +0000 (04:23 +0200)
committerGitLab <gitlab@git.dovecot.net>
Thu, 18 May 2017 21:20:36 +0000 (00:20 +0300)
This fixes the debug message; the behavior was otherwise correct.

src/lib-http/http-server-connection.c

index 9d80331d2371b1444913c62ed6f95bdc93792f74..5144b4e21918dc924000ff0ce3a8657f1ba768a8 100644 (file)
@@ -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);