curl-library
Re: libcurl/openssl crashes when remote site partially goes down
Date: Thu, 17 Jan 2008 14:11:48 +0100 (CET)
On Thu, 17 Jan 2008, Magnus Cederlöf wrote:
> Well, I would at least expect that it would return with an error code and
> not just stop executing the program in the middle of a routine. If this
> routine is incorporated in a larger application it means that everything
> running in that process will stop. It would be good to have a way to catch
> the error.
(Please don't top-post, it makes it very hard to follow this thread.)
The problem is that there's SIGPIPE sent to the app that seems to arrive when
curl_easy_cleanup() is called and that is actually caused by OpenSSL that
writes to the socket...
As a quick fix, you can just make your app ignore those. I'm not really sure
how to force openssl to not cause this to happen.
Anyone else?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2008-01-17