During request retry the request is first dropped from and subsequently added to
the queue. Dropping a request from the queue can start the host idle timeout
when it is the very last one. The timeout was not removed later on anymore when
the request was submitted again, because it was added prematurely (before
dropping the request).
}
}
- http_client_host_shared_request_submitted(host->shared);
-
/* Add request to queue */
queue = http_client_queue_get(host, &addr);
http_client_queue_submit_request(queue, req);
+ /* Update shared host object (idle timeout) */
+ http_client_host_shared_request_submitted(host->shared);
+
/* Queue will trigger host lookup once the request is activated
(may be delayed) */
}