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: Daniel Stenberg <bagder_at_users.sf.net>
Date: Sat, 05 Oct 2013 21:21:22 +0000

- **status**: pending-needsinfo --> closed-invalid

---
** [bugs:#1275]  Timeout after multiple requests with curl_easy_reset**
**Status:** closed-invalid
**Created:** Wed Sep 04, 2013 07:36 AM UTC by lietus
**Last Updated:** Sat Sep 21, 2013 07:48 PM 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-10-05

These mail archives are generated by hypermail.

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

File upload with ASP.NET