curl-library
Re: broken pipe
Date: Thu, 19 Jan 2006 10:10:42 +0100 (CET)
On Wed, 18 Jan 2006, Yi Li wrote:
> I use curl lib to download urls from a file.
>
> Here is what I got from gdb:
> Program received signal SIGPIPE, Broken pipe.
> [Switching to Thread -1229947984 (LWP 3396)]
> 0x00fdc402 in __kernel_vsyscall ()
> (gdb) where
> #0 0x00fdc402 in __kernel_vsyscall ()
...
> #8 0x008c2aa3 in SSL_shutdown () from /lib/libssl.so.5
> #9 0x008165fb in Curl_SSL_Close () from /usr/lib/libcurl.so.3
Googling for this, it seems lots of people have experienced this problem
already, just not with libcurl.
I find it annoying enough that the only "fix" I've seen mentioned in the
articles I found, and in the SSL man pages, is to provide a signal handler to
ignore the SIGPIPE...
At least you might be able to provide a work-around in your app for now. Let
me know if you can figure out a way to tell OpenSSL we don't want no signal...
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-01-19