cURL / Mailing Lists / curl-library / Single Mail

curl-library

libcURL behavior with unexpected socket close

From: Marco Toldo <marcoxtoldo_at_gmail.com>
Date: Fri, 10 Apr 2009 20:06:01 +0200

Hi all,

I'm a newbie as libcURL user.
I was wondering how curl behaves in some scenarios.

If send() method of C sockets is invoked when either side closed
connection, a SIGPIPE signal is sent to calling process, which by
default terminates the process. A way to avoid this is to call send()
with MSG_NOSIGNAL flag.

Does the CURLOPT_NOSIGNAL option of curl_easy_setopt() act the same
for curl or something else is required in order to keep process alive?

Thanks in advance,

Marco
Received on 2009-04-10