|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker Archives
[ curl-Bugs-3516508 ] Curl_connecthost brocken
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 18 Apr 2012 14:16:22 -0700
Bugs item #3516508, was opened at 2012-04-10 07:44
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
If the dns resolver returns several records, some of which being unavailable on the system, Curl_connecthost() will fail (and return CURL_FAILED_INIT, which seems wrong) on the first dns record without trying the other records.
I have traced the regression to this commit:
https://github.com/bagder/curl/commit/9109cdec11ee5a19f132fd7bdf2e9ceefea4de41#lib/connect.c
You will observe that the "return CURLE_OK" when the call to socket() fails has been silently replaced by "return CURL_FAILED_INIT"; which do not seem to be the most appropriate error code; furthermore, singleipconnect / Curl_connecthost should be modified appropriately to handle the new behaviour.
Regards,
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated January 05, 2012.
web site info