Re: curl crashes when internet switched off
Date: Wed, 4 Sep 2019 15:38:42 +0200
I updated my libcurl to 7.65.3 and at the same time I found out that the
3rd party sdk i am using does use curl_easy_setopt(curl, CURLOPT_NOSIGNAL,
1). After I set that to "0" my program didn't terminate when wifi was
switched off. But from the brief reading on google , it seems that
CURLOPT_NOSIGNAL should be set to 1 for multithreaded applications like
mine. Is there a way to keep CURLOPT_NOSIGNAL = 1 and handle the broken
SIGPIPE problem I am getting originally?
On Wed, Sep 4, 2019 at 2:43 PM Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Wed, 4 Sep 2019, Salman Ahmed wrote:
>
> > 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?
>
> Ah sorry I see now that I misread what TLS backend that was in use. Ignore
> my
> previous question.
>
> I guess you either suffer from an old libcurl bug (I searched but I
> couldn't
> find any obvious issue) or you've switched off signal handling with
> CURLOPT_NOSIGNAL.
>
> Maybe you can build a modern version as a test just to see if the problem
> persists then or not?
>
> (During those 3.5 years since we released 7.47.0, we have landed at least
> 2235
> documented bug fixes.)
>
> --
>
> / 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