Skip to content

Commit

Permalink
fix: use CURLOPT_TIMEOUT_MS to config OtlpHttpExporter's timeout inst…
Browse files Browse the repository at this point in the history
…ead of CURLOPT_TIMEOUT (#1261)
  • Loading branch information
wxl374 authored Mar 11, 2022
1 parent fd5a621 commit 4a7200b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class HttpOperation

// Perform initial connect, handling the timeout if needed
curl_easy_setopt(curl_, CURLOPT_CONNECT_ONLY, 1L);
curl_easy_setopt(curl_, CURLOPT_TIMEOUT, http_conn_timeout_.count() / 1000);
curl_easy_setopt(curl_, CURLOPT_TIMEOUT_MS, http_conn_timeout_.count());
DispatchEvent(opentelemetry::ext::http::client::SessionState::Connecting);
res_ = curl_easy_perform(curl_);
if (CURLE_OK != res_)
Expand Down

0 comments on commit 4a7200b

Please sign in to comment.