CURLOPT_TIMEOUT default is 1 hour (on TFTP) #6774
Closed
Labels
Comments
bagder
added a commit
that referenced
this issue
Mar 22, 2021
... it was never meant to be there. Reported-by: Tomas Berger Fixes #6774 Closes #[fill in]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I did this
I used libcurl to download over a very slow (but stable) TFTP link, and it keeps timing out after 3600 seconds aka 1 hour.
Then I set the option to be 0
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 0L);
it still times out after 3600 seconds.So I thought it might have to do with the server timing out after 1 hour, but when setting the
CURLOPT_TIMEOUT
to 4000, it times out after 4000 seconds.I wish to timeout using the stability of the connection aka
CURLOPT_LOW_SPEED_LIMIT
andCURLOPT_LOW_SPEED_TIME
, both of which are also setI expected the following
According to CURLOPT_TIMEOUT and CURLOPT_TIMEOUT_MS documentation, the default should be 0 and if it is 0 it should never time out
curl/libcurl version
curl 7.75.0 (Linux) libcurl/7.75.0 OpenSSL/1.1.1g zlib/1.2.11 libssh2/1.9.0_DEV
Release-Date: 2021-02-03
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM SSL UnixSockets
I also ran this on 7.74.0, same issues
operating system
Linux tomas-ubuntu 5.4.0-66-generic #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: