Skip to content

Commit

Permalink
lib-http: client: Respect the connection idle timeout, even when all …
Browse files Browse the repository at this point in the history
…queues have unlinked from a peer.

Otherwise, the DNS TTL timeout dictates the connection idle timeout in some situations.
  • Loading branch information
stephanbosch authored and GitLab committed Feb 2, 2017
1 parent 18c01c2 commit aa881f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-http/http-client-peer.c
Expand Up @@ -735,7 +735,7 @@ void http_client_peer_unlink_queue(struct http_client_peer *peer,
queue->name, array_count(&peer->queues));

if (array_count(&peer->queues) == 0)
http_client_peer_drop(&peer);
http_client_peer_check_idle(peer);
return;
}
}
Expand Down

0 comments on commit aa881f8

Please sign in to comment.