]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: http-client-peer - Do not trigger request handler for disconnected peer
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sat, 24 Mar 2018 15:32:35 +0000 (16:32 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 7 Mar 2025 14:56:56 +0000 (14:56 +0000)
src/lib-http/http-client-peer.c

index b7636fb4c8f06562ad2259e6d9610d89ba0e6689..e6a95c9a144533693e5dbdf0371b80a831094130 100644 (file)
@@ -1173,6 +1173,9 @@ static void http_client_peer_handle_requests(struct http_client_peer *peer)
 
 void http_client_peer_trigger_request_handler(struct http_client_peer *peer)
 {
+       if (peer->disconnected)
+               return;
+
        /* Trigger request handling through timeout */
        if (peer->to_req_handling == NULL) {
                peer->to_req_handling = timeout_add_short_to(