|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-3076808 ] Requests fail silently following a 416 error
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 27 Sep 2010 21:23:13 +0000
Bugs item #3076808, was opened at 2010-09-27 23:08
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
The problem: I'm using libcurl to conduct a group of transfers with Range: headers. These might result in HTTP error 416: Requested Range Not Satisfiable.
The author of lib/http.c's comments suggest s/he thought that 416 responses cannot have a body, and carry a Content-Length which describes the length of the real document. However, this isn't the case. The RFC says nothing about 416 under Content-Length, but does state that Content-Range may be used for this purpose. In a few places it mentions response codes which preclude a body; it never includes 416 in such a list.
Real servers in fact *do* include a body, and don't treat Content-Length in an unusual way. Specifically:
Full conversations with these servers are attached.
Ordinarily this is just annoying, but it becomes a serious problem when using libcurl's multi-handles and a server which may delay appreciably between sending its headers and its error document. As far as I can tell from packet traces, what's happening is:
* I add two easy-handles to a multi-handle which make requests of the same server.
I'm not sure exactly what happens at the end, as I never see the second request complete. However, packet traces show that the second request is definitely sent before the first error document has arrived, and the code comments indicating false expectations about 416 replies suggest this is the cause. I'll try to track it down more carefully soon.
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
I can only explain this weirdness as a confused mixup of Content-Range and
We need to clear this up...
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info