This makes sure the host idle timeout is stopped before the request is submitted
and the host object's refresh function is called. If the idle timeout is still
running at that point, the refresh function will return success without
performing a lookup, which can lead to a panic.
Panic was:
Panic: file ./http-client-private.h: line 672 (http_client_host_get_ip): assertion failed: (idx < host->shared->ips_count)
}
}
+ 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);
- http_client_host_shared_request_submitted(host->shared);
-
/* queue will trigger host lookup once the request is activated
(may be delayed) */
}