cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Hangs through unresponsive proxy

From: Russ Freeman <russf_at_gipsymedia.com>
Date: Mon, 2 Feb 2004 15:35:32 -0000

Hi,

Never mind, it was user (me) error. I tried setting the timeout switch on
"curl" and curl correctly timed out so I took a look at my code...

I was using the CURLOPT_CONNECTTIMEOUT but not the CURLOPT_TIMEOUT, which is
what curl was using.

So I now use both and it's All Good.

Russ.

> -----Original Message-----
> From: curl-library-admin_at_lists.sourceforge.net [mailto:curl-library-
> admin_at_lists.sourceforge.net] On Behalf Of Daniel Stenberg
> Sent: Wednesday, January 28, 2004 11:44 AM
> To: libcurl Mailing list
> Subject: RE: Hangs through unresponsive proxy
>
> On Tue, 27 Jan 2004, Russ Freeman wrote:
>
> > Basically it would happen if a customer entered bad proxy settings...the
> > result is my product just sitting and waiting.
>
> Not really. Most bad proxy settings will use a port that nothing is
> listening
> to or a host name that's bad.
>
> You mention localhost:135, but that is a port that some kind of service is
> using on your host and thus it works to connect to it. I don't run or
> develop
> curl on windows, why I was more curious on what's specific with this port
> 135.
>
> I tried using other existing services on my linux machines, such as 21,
> 22, 23
> etc but they all close down my attempts and I can't get curl to hang on
> them.
>
> > I have a timeout but it does not help. The code is stuck in the libcurl
> loop
> > mentioned and the only way to stop it (for the customer) is to terminate
> the
> > application.
>
> I'm trying to understand how to repeat this in order to fully understand
> what's happening.
>
> --
> Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
> [[ Do not send mails to this email address. They won't reach me. ]]
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-02-02