From a18a2ba0bb5358513a095dbe87df18d8d5c3f7d8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 5 May 2014 00:07:54 +0200 Subject: 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 --- lib/vtls/curl_schannel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/vtls/curl_schannel.c') diff --git a/lib/vtls/curl_schannel.c b/lib/vtls/curl_schannel.c index 575b69354..64e79e141 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 " -- cgit v1.2.3