cURL

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] Re: #1352 WinSSL times out when uploading and timeout option is set to 0

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Sun, 04 May 2014 22:07:33 +0000

I think that's spot on, a fix could look like this:

~~~~~~
diff --git a/lib/vtls/curl_schannel.c b/lib/vtls/curl_schannel.c
index 575b693..64e79e1 100644
--- a/lib/vtls/curl_schannel.c
+++ b/lib/vtls/curl_schannel.c
@@ -763,11 +763,11 @@ schannel_send(struct connectdata *conn, int sockindex,
       long timeleft;
       int what;
 
       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 "
               "(bytes sent: %zd)", written);
         *err = CURLE_OPERATION_TIMEDOUT;
~~~~~

... but as I don't think the original problem mentioned 5 minutes I'm not sure it is the same error...

---
** [bugs:#1352] WinSSL times out when uploading and timeout option is set to 0**
**Status:** open
**Labels:** winssl 
**Created:** Wed Apr 02, 2014 09:50 PM UTC by Edward Rudd
**Last Updated:** Fri May 02, 2014 12:53 AM UTC
**Owner:** Daniel Stenberg
We are using libcurl (currently 7.29) compiled with WinSSL for our Windows build of the application.  We are having a weird issue with where we are receiving a timeout when uploading data and should NOT receive one as we have the CURLOPT_TIMEOUT set to 0 (the default value).   when looking through the code in curl_schannel.c there seems to be a condition not handled while uploading the data.  the Curl_socket_ready method will return 0 (meaning the write socket is not ready), and instead of trying waiting and trying again, the schannel_send method will simply abort with a timeout error. 
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-05-05

These mail archives are generated by hypermail.

donate! Page updated March 21, 2014.
web site info

File upload with ASP.NET