cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: [Bug#158173: curl: Timeout if proxy is down]

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 3 Sep 2002 14:25:22 +0200 (MET DST)

On Tue, 3 Sep 2002, Domenico Andreoli wrote:

> I noticed that curl's timeout options, -y and -Y, don't work if used with a
> proxy (the -x option) that happens to be down.

That is not the intended use for those options. They stop slow transfers, and
thus they only start to work when the transfer "phase" have started.

> $ curl -y 5 -Y 240000 -x cobalt3.cotel.de:80 -o /dev/null
> http://www.wwu.edu/about/map/cmapsm.jpg
>
> It should time out after five seconds, but doesn't.

I disagree. If you want a connection timeout efter 5 seconds,
--connect-timeout is there for you for *exactly* that purpose.

> Please enhance curl so it also times out if the proxy is down.

Sorry, I don't agree with you that this is a bug. If you still think it is,
then please motivate why and why my suggested option does not offer what you
want.

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-09-03