mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
Fixed more potential problems with deadlocked ES threads and signals from libcurl.
This commit is contained in:
parent
fe84e7aaf8
commit
b13196cbf1
1 changed files with 5 additions and 1 deletions
|
@ -371,7 +371,11 @@ bool ElasticSearch::HTTPSend(CURL *handle)
|
||||||
// The best (only?) way to disable that is to just use HTTP 1.0
|
// The best (only?) way to disable that is to just use HTTP 1.0
|
||||||
curl_easy_setopt(handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
|
curl_easy_setopt(handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
|
||||||
|
|
||||||
//curl_easy_setopt(handle, CURLOPT_TIMEOUT_MS, transfer_timeout);
|
// Some timeout options. These will need more attention later.
|
||||||
|
curl_easy_setopt(handle, CURLOPT_NOSIGNAL, 1);
|
||||||
|
curl_easy_setopt(handle, CURLOPT_CONNECTTIMEOUT_MS, transfer_timeout);
|
||||||
|
curl_easy_setopt(handle, CURLOPT_TIMEOUT_MS, transfer_timeout*2);
|
||||||
|
curl_easy_setopt(handle, CURLOPT_DNS_CACHE_TIMEOUT, 60*60);
|
||||||
|
|
||||||
CURLcode return_code = curl_easy_perform(handle);
|
CURLcode return_code = curl_easy_perform(handle);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue