Discussion:
Does CURLOPT_TIMEOUT includes CURLOPT_CONNECTTIMEOUT.
Никита Дорохин
2010-06-09 12:46:01 UTC
Permalink
Hello everybody.

 

First of all, I'm using libcurl-7.20 for deveopment on C/C++.

 

Lets say I 'm trying ti upload a file to HTTPs server with POST method. I set CURLOPT_CONNECTTIMEOUT value to 10 seconds and CURLOPT_TIMEOUT value to 20 seconds. The connection phase took 9 seconds. Do I have 11 seconds for remaining for the actual file upload or I have 20 seconds?

 

Judging from libcurl output in verbose mode I suppose to have 20 seconds left. Confirm please whether it is correct or not?

 

Thanks in advance,

Nikita.
Daniel Stenberg
2010-06-09 12:49:27 UTC
Permalink
Post by Никита Дорохин
Lets say I 'm trying ti upload a file to HTTPs server with POST method. I
set CURLOPT_CONNECTTIMEOUT value to 10 seconds and CURLOPT_TIMEOUT value to
20 seconds. The connection phase took 9 seconds. Do I have 11 seconds for
remaining for the actual file upload or I have 20 seconds?
11
--
/ daniel.haxx.se
Никита Дорохин
2010-06-09 13:06:34 UTC
Permalink
And this is what I expected but I see that it takes 20 seconds. I'll try to check this again but I sow that overall transaction time took CURLOPT_TIMEOUT + CURLOPT_CONNECTTIMEOUT = 30 seconds and ended up with the timeout. Libcurl said that transfer timeout 20 seconds was reached.  
Daniel Stenberg
2010-06-13 22:19:05 UTC
Permalink
Post by Никита Дорохин
And this is what I expected but I see that it takes 20 seconds. I'll try to
check this again but I sow that overall transaction time took
CURLOPT_TIMEOUT + CURLOPT_CONNECTTIMEOUT = 30 seconds and ended up with the
timeout. Libcurl said that transfer timeout 20 seconds was reached.  
Then you're experiencing a bug! If you can figure out a way to repeat this,
I'm intrested...
--
/ daniel.haxx.se
Loading...