diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/multi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c index 3b7831680..f0a7bfb31 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -965,6 +965,11 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi, easy->result = Curl_is_resolved(easy->easy_conn, &dns); if(dns) { + /* Update sockets here. Mainly because the socket(s) may have been + closed and the application thus needs to be told, even if it is + likely that the same socket(s) will again be used further down. */ + singlesocket(multi, easy); + /* Perform the next step in the connection phase, and then move on to the WAITCONNECT state */ easy->result = Curl_async_resolved(easy->easy_conn, |