Skip to content

config timeout with CURLOPT_TIMEOUT_MS instead of CURLOPT_TIMEOUT for curl implementation #1258

@lalitb

Description

@lalitb

Discussed in #1254

Originally posted by wxl374 March 10, 2022
When configure OtlpHttpExporter's timeout less than 1s, it will set to 0 for the use of CURLOPT_TIMEOUT(

curl_easy_setopt(curl_, CURLOPT_TIMEOUT, http_conn_timeout_.count() / 1000);
), then never times out (sometimes limited by CURLOPT_LOW_SPEED_TIME). Why not use CURLOPT_TIMEOUT_MS instead?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions