Skip to content

Commit

Permalink
lib-http: server: Fixed detection of idle connection.
Browse files Browse the repository at this point in the history
This fixes the debug message; the behavior was otherwise correct.
  • Loading branch information
stephanbosch authored and GitLab committed May 18, 2017
1 parent e5d6029 commit 355b675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-http/http-server-connection.c
Expand Up @@ -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);
Expand Down

0 comments on commit 355b675

Please sign in to comment.