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.

--

 / daniel.haxx.se
 | Commercial curl support up to 24x7 is available!
 | Private help, bug fixes, support, ports, new features
 | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to