Re: IP address connection fail-over is broken for non-blocking sockets

2013-10-10 Thread Daniel Stenberg
On Wed, 9 Oct 2013, David Strauss wrote: In Curl_connecthost(), there's a loop to call singleipconnect() for each address. This loop breaks when it gets a non-bad file descriptor. But, 99% of libcurl invocations use non-blocking sockets, especially in the current era of even the "easy" interfa

IP address connection fail-over is broken for non-blocking sockets

2013-10-09 Thread David Strauss
In Curl_connecthost(), there's a loop to call singleipconnect() for each address. This loop breaks when it gets a non-bad file descriptor. But, 99% of libcurl invocations use non-blocking sockets, especially in the current era of even the "easy" interface using the "multi" back-end. This effective