curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: HTTP request timeout and multi interface

From: Daniel Stenberg via curl-library <>
Date: Mon, 8 Mar 2021 22:47:28 +0100 (CET)

On Mon, 8 Mar 2021, Andrei Bica via curl-library wrote:

> By using CURLOPT_TIMEOUT we can only set the transfer timeout, which doesn't
> include the time it waits for the transfer to begin.

I believe this is wrong.

CURLOPT_TIMEOUT sets the maximum time allowed for the entire operation to use,
no matter what state the transfer is in and how long it waits in what queues.

Technically, it means that the timeout value is counted from the TIMER_STARTOP
time-stamp which is set in the INIT state, before the transfer gets queued up
in the PENDING state waiting for a connection.

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2021-03-08