From: Daniel Stenberg Date: Sun, 4 May 2014 22:07:54 +0000 (+0200) Subject: schannel: don't use the connect-timeout during send X-Git-Tag: curl-7_37_0~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a18a2ba0bb5358513a095dbe87df18d8d5c3f7d8;p=thirdparty%2Fcurl.git schannel: don't use the connect-timeout during send 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 --- diff --git a/lib/vtls/curl_schannel.c b/lib/vtls/curl_schannel.c index 575b693542..64e79e1415 100644 --- a/lib/vtls/curl_schannel.c +++ b/lib/vtls/curl_schannel.c @@ -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 "