cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl blocking in multi-mode when doing proxied https fetch from bad host

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 22 Jan 2007 19:59:59 +0100 (CET)

On Mon, 22 Jan 2007, Adam D. Moss wrote:

> I'm having an unpleasant problem in a server where a particular type of
> bogus https:// fetch is blocking (for 60 seconds!) despite my using
> multi-mode, when connecting via a Squid proxy (the app needs this proxy to
> function).

I'm suspecting this happens because the CONNECT procedure within libcurl is
blocking so if the remote site is slow or similar, that request will be served
very slowly and thus block.

> I'd appreciate any ideas for workarounds or such!

The only work-around I can think of is to translate the function into a
non-blocking one.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-01-22