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
This commit is contained in:
Daniel Stenberg 2014-05-05 00:07:54 +02:00
parent 812da4190f
commit a18a2ba0bb

View 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 "