Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib-http: client: Fixed race condition between DNS refresh lookup and…
… a soft connection timeout. The refreshing DNS lookup cleared all the IPs, but the soft connection timeout (and maybe other code) still relied on them. Adding tests everywhere for host->ips_count == 0 is annoying, so I changed the DNS lookup code such that the stale IPs remain present while the DNS lookup is being performed. The pending lookup prevents new connections through http_client_host_refresh(), so this will not create potentially useless connections.
- Loading branch information