cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1275 Timeout after multiple requests with curl_easy_reset

From: lietus <lietus2_at_users.sf.net>
Date: Mon, 09 Sep 2013 08:15:07 +0000

And yes, I'm using curl_easy_perform()

---
** [bugs:#1275]  Timeout after multiple requests with curl_easy_reset**
**Status:** open
**Created:** Wed Sep 04, 2013 07:36 AM UTC by lietus
**Last Updated:** Mon Sep 09, 2013 08:14 AM UTC
**Owner:** Daniel Stenberg
Running on iPad, iOS 6.0.1, libcurl/7.29.0 OpenSSL/1.0.1e zlib/1.2.5.
I'm executing multiple HTTP POST requests with same content size - uploading big file in chunks.
After few requests are completed, one request gets stuck until timeout happens.
Which request will timeout is always more or less the same - it depends on request size being sent.
For example, uploading:
4 MB requests will always result in 2th requests stuck;
2 MB requests - 4th requests stuck;
100000 B requests - 58th requests stuck;
10000 B requests - ~316th requests stuck (+-);
However, I noticed that if I call curl_easy_init instead of curl_easy_reset, this problem goes away. What doesn't curl_easy_reset do for this to happen?
Also, after timeout happens, I call curl_easy_reset and setopt all values needed, that also fixes problem for another few requests (same pattern applies).
curl_easy_init cannot applied here because it would slow down other requests that come though this code.
Thanks,
Vincas
---
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 2013-09-09

These mail archives are generated by hypermail.

donate! Page updated May 06, 2013.
web site info

File upload with ASP.NET