curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: curl crashes when internet switched off

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 4 Sep 2019 13:50:38 +0200 (CEST)

On Wed, 4 Sep 2019, Salman Ahmed via curl-library wrote:

> I am facing this problem where my application just terminates when I
> manually switch off my WiFi while it is waiting on curl_easy_perform() in a
> separate thread from the main thread.

What libcurl version is this? On Linux, right?

> Thread 4 "my-app" received signal SIGPIPE, Broken pipe.

libcurl should invoke send() with MSG_NOSIGNAL set that then would avoid this.

Did configure find and define HAVE_MSG_NOSIGNAL for you?

-- 
  / daniel.haxx.se | Get the best commercial curl support there is - from me
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2019-09-04