|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-2853575 ] range support waits on keepalive timeout
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 07 Sep 2009 14:23:38 +0000
Bugs item #2853575, was opened at 2009-09-07 16:13
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
Since curl does not send a "Connection: close" header with the http/1.1 request, curl will also dutifully wait until the server times out and closes the connection. This can be quite some time, although usually it's between 15 and 30 seconds.
Fix: send a "Connection: close" header when making http/1.1 requests.
Side note: when curl is used to make the same exact request *without* --range, it (curl) *closes* the connection after doing so. As an indication that it intends to do so, it really should (but this is not a bug) send a connection: close header.
Sample Request:
curl -D - --range 0-0,10-10,-30 http://.....
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
The fix is not that simple as you make it sound like. curl and libcurl are
But "connection: close" when libcurl is closing the socket anyway is
curl should not wait for the server to close the socket for any requests.
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info