]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
schannel: don't use the connect-timeout during send
authorDaniel Stenberg <daniel@haxx.se>
Sun, 4 May 2014 22:07:54 +0000 (00:07 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 4 May 2014 22:10:37 +0000 (00:10 +0200)
As there's a default connection timeout and this wrongly used the
connection timeout during a transfer after the connection is completed,
this function would trigger timeouts during transfers erroneously.

Bug: http://curl.haxx.se/bug/view.cgi?id=1352
Figured-out-by: Radu Simionescu
lib/vtls/curl_schannel.c

index 575b693542b030da7ac0b34b14fa313a8876dc91..64e79e1415104294654b6c98a794a92c4b906a41 100644 (file)
@@ -765,7 +765,7 @@ schannel_send(struct connectdata *conn, int sockindex,
 
       this_write = 0;
 
-      timeleft = Curl_timeleft(conn->data, NULL, TRUE);
+      timeleft = Curl_timeleft(conn->data, NULL, FALSE);
       if(timeleft < 0) {
         /* we already got the timeout */
         failf(conn->data, "schannel: timed out sending data "