Re: curl crashes when internet switched off
Date: Wed, 4 Sep 2019 17:30:31 +0500
CURL VER libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
Linux VirtualBox 4.15.0-58-generic #64~16.04.1-Ubuntu SMP Wed Aug 7
14:10:35 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
I guess its 3 year old libcurl?I dont remember manually configure/install.
I just got it from the ubuntu repos.
Do I need to build curl myself and have this symbol defined?
Sorry forgot to Reply-All
On Wed, Sep 4, 2019 at 4:50 PM Daniel Stenberg <daniel_at_haxx.se> wrote:
> 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