curl-library
RE: pipelining with proxy hangs
Date: Tue, 16 Sep 2008 18:01:43 -0700
Hey Guys,
I have built libcurl on OS X using Xcode into a universal binary (32-bit). I
have a class that wraps the calls to libcurl and when I make instance of
that class and try to call curl_easy_perform it crashes in transfer.c line
1872. This is the location where the code is trying to tell the OS to ignore
SIGPIPE.
Here is the code in question.
#if defined(HAVE_SIGNAL) && defined(SIGPIPE) && !defined(HAVE_MSG_NOSIGNAL)
/*************************************************************
* Tell signal handler to ignore SIGPIPE
*************************************************************/
if(!data->set.no_signal)
data->state.prev_signal = signal(SIGPIPE, SIG_IGN); <<<<<----
this is line where it crashes
#endif
I am not a big Unix or OS X guy so don't exactly know the significance of
this code. I could try defining HAVE_SIGNAL as 0 to avoid the error, but
would like to understand why it is crashing.
Ramesh
-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Monday, September 08, 2008 5:10 AM
To: libcurl development
Subject: Re: pipelining with proxy hangs
On Fri, 5 Sep 2008, Dmitry Kurochkin wrote:
> Attached is a patch to fix the problem. It makes checkPendPipeline move 1
> handler from pend pipe to send pipe if pipelining is not supported by
server
> but there are no handles in send and recv pipes.
Thanks a lot. Applied!
-- / daniel.haxx.seReceived on 2008-09-17