mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-10 06:40:59 +00:00
use CURLOPT_NOSIGNAL in multithreaded applications... avoids nasty SEGFAULT during Curl_resolv!
git-svn-id: http://s3fs.googlecode.com/svn/trunk@107 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
parent
c5d9fdb607
commit
4104189eba
@ -127,6 +127,8 @@ alloc_curl_handle() {
|
||||
curl_handles.pop();
|
||||
}
|
||||
curl_easy_reset(curl);
|
||||
long signal = 1;
|
||||
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, signal);
|
||||
long seconds = 10;
|
||||
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, seconds);
|
||||
return curl;
|
||||
|
Loading…
Reference in New Issue
Block a user