curl-library
AW: segfault when using libcurl in thread but ok when used non threaded
From: Patrick Schlangen <patrick_at_schlangen.me>
Date: Tue, 31 Jul 2018 10:49:28 +0200
Date: Tue, 31 Jul 2018 10:49:28 +0200
Hi,
> If I run it as a thread it works ok for a few iterations then segfaults
> at curl_easy_perform.
since you're using a https URL, please check https://curl.haxx.se/libcurl/c/threadsafe.html, section "TLS". Depending on the SSL library you use, you might need to take care of some things. When using OpenSSL <= 1.0.2, for example, you will have to set up lock callbacks.
Best Regards
Patrick
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-07-31