cURL
Haxx ad
libcurl
Automatically get a mirror near you





COMPARE PRICES:
Digital cameras, MP3 Players, Camcorders, Mobile phones, PDA, Computers, Electronics LCD monitors, Printers, Notebook, DVD Players, Motherboards, TV, ipod, Processors. See all...

Shopping cart software
Online collaboration software

SourceForge.net Logo

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Re: Problem with async connect in multi interface

From: yarram sunil <yvsunil_at_rediffmail.com>
Date: 26 Sep 2002 04:56:31 -0000

Thanks, it is working fine now..
On Mon, 23 Sep 2002 Daniel Stenberg wrote :
>On 16 Sep 2002, yarram sunil wrote:
>
>(Sorry it's taken a while to respond)
>
>
>This is clearly a mistake, it should close the previous
>connection when the
>timeout occurs. I would be happy if you could try the attached
>patch here and
>see if it helps out!
>
> > Also the function "Curl_is_connected" defined in file
>"connect.c" returns
> > "CURLE_OPERATION_TIMEOUTED" when the connect times out. I
>think
> > "CURLE_COULDNT_CONNECT" return code would be appropriate
>here.
>
>I don't agree. CURLE_OPERATION_TIMEOUTED is returned when a
>timeout set by
>you has elapsed. If it fails for normal/default network
>reasons,
>CURLE_COULDNT_CONNECT is returned.

    Let me put my problem here. I can connect to more than one
proxy. if my first proxy is down then i should connect to another
proxy and the only way to know my first proxy was down is through
the error code returned by curl as CURLE_COULDNT_CONNECT. If i get
a CURLE_OPERATION_TIMEOUTED then i cannot distinguish whether it
has happened during the connect time or a overall timeout.

              It would be better if a new error code
CURLE_CONNECT_OPERATION_TIMEOUTED returned rather than
CURLE_OPERATION_TIMEOUTED when connection time out is reached.

--
Sunil.
>
>--
>  Daniel Stenberg -- curl related mails on curl related mailing 
>lists please
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-09-26

These mail archives are generated by hypermail.

donate! Page updated October 16, 2006.
web site info