curl-users
Re: curl 7.7.1 non-blocking connects
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 11 Apr 2001 08:43:36 +0200 (MET DST)
Date: Wed, 11 Apr 2001 08:43:36 +0200 (MET DST)
On Tue, 10 Apr 2001, SM wrote:
> I modified the url.c file in curl 7.7.1 to use non-blocking connects
> under win32 (attached url.c.diff file). You can define the connect
> timeout value with the "--connect-timeout" switch. If the connect
> timeout value is not set, a blocking connect will be used. Curl returns
> the "Connection timed out" error if there is a connection timeout.
Woa! Cool indeed. Thanks a lot.
A minor detail: we should take the socket back into blocking mode again after
the connection has been made.
I added that code before I committed the code to CVS.
-- Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/Received on 2001-04-11