mirror of
https://github.com/curl/curl.git
synced 2026-07-23 01:27:16 +03:00
transfer: avoid unnecessary timeout event when waiting for 100-continue
The commit 9dd85bc unintentionally changed the way we compute the time
spent waiting for 100-continue. In particular, when using a SSL client
certificate, the time spent by SSL handshake was included and could
cause the CURL_TIMEOUT_EXPECT_100 timeout to be mistakenly fired up.
Bug: https://bugzilla.redhat.com/767490
Reported by: Mamoru Tasaka
This commit is contained in:
parent
98292bcdd0
commit
9f7f6a62ff
2 changed files with 3 additions and 1 deletions
|
|
@ -2364,7 +2364,7 @@ Curl_setup_transfer(
|
|||
(data->state.proto.http->sending == HTTPSEND_BODY)) {
|
||||
/* wait with write until we either got 100-continue or a timeout */
|
||||
k->exp100 = EXP100_AWAITING_CONTINUE;
|
||||
k->start100 = k->start;
|
||||
k->start100 = Curl_tvnow();
|
||||
|
||||
/* set a timeout for the multi interface */
|
||||
Curl_expire(data, CURL_TIMEOUT_EXPECT_100);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue