cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Adam D. Moss <adam_at_gimp.org>
Date: Tue, 23 Jan 2007 09:23:20 +0000

Daniel Stenberg wrote:
> 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.

Thanks for the response. How would you rate the difficulty of
such a fix to someone unfamiliar with the source? If it's reasonably
straightforward then I'm happy to have a crack at a patch (any hints
for how to go about it would thus be welcome!).

Cheers,
--Adam
Received on 2007-01-23