curl-library
Re: SIGSEGV after curl_easy_cleanup in libuv app.
From: Vitaliy T <vitaliy.tokarev_at_gmail.com>
Date: Sat, 8 Apr 2017 21:18:42 +0300
Date: Sat, 8 Apr 2017 21:18:42 +0300
On 6 April 2017 at 23:41, Vitaliy T <vitaliy.tokarev_at_gmail.com> wrote:
> The error occurs when all workers are completed their job. You have to
> wait a bit before SIGSEGV would occur. I am not sure if I am doing
> something wrong:
> 1. Is it safe to call curl_easy_* functions from threads?
> 2. Is it my mistake because of I coded libuv incorrectly?
> 3. Do I need to apply some special patches to libcurl in my case?
Solved via curl_easy_setopt (curl, CURLOPT_NOSIGNAL, 1L);
This should be mentioned in the "CURL everything" book, IMHO.
-- With Best Regards, Vitaliy V. Tokarev ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2017-04-08