Mercurial > dovecot > core-2.2
changeset 21331:0fcd4cdd97ed
lib-http: client: Prevent infinite event loop involving the request handler.
Could happen when a backoff time is active.
author | Stephan Bosch <stephan.bosch@dovecot.fi> |
---|---|
date | Fri, 16 Dec 2016 21:41:29 +0100 |
parents | eb456cb34cac |
children | 51ace2c84845 |
files | src/lib-http/http-client-peer.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-http/http-client-peer.c Mon Apr 11 21:20:48 2016 +0300 +++ b/src/lib-http/http-client-peer.c Fri Dec 16 21:41:29 2016 +0100 @@ -644,6 +644,9 @@ return; } + if (peer->to_backoff != NULL) + return; + if (http_client_peer_start_backoff_timer(peer)) { http_client_peer_debug(peer, "Dropping peer (waiting for backof timeout)");