Closed
Bug 95466
Opened 23 years ago
Closed 9 years ago
content sent with invalid Content-Length will never be reused from the cache
Categories
(Core :: Networking, defect, P4)
Core
Networking
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: darin.moz, Unassigned)
Details
(Keywords: regression, Whiteboard: [edge-case])
my patch for bug 89113 along with the patch for bug 94889 broke caching of content served with an invalid Content-Length header. the solution requires some modification to nsHttpChannel::OnDataAvailable to "track" the size of the incoming data and update the cached Content-Length header appropriately.
Reporter | ||
Comment 1•23 years ago
|
||
since this only effects "broken" servers, this doesn't really deserve a high priority... if it makes it for moz0.9.4 great, but if not... i don't think it's a big deal.
Severity: normal → minor
Status: NEW → ASSIGNED
Keywords: regression
Priority: -- → P4
Target Milestone: --- → mozilla0.9.4
So, based on reading the notes for 89113, this would theoretically be only HTTP 0.9 servers, b/c someone commented that HTTP 1.0 servers do this correctly?
Comment 3•23 years ago
|
||
benc: No - 0.9 servers never send a content length. 1.1 servers MUST send a correct one. Some 1.0 servers got it wrong.
Reporter | ||
Comment 4•23 years ago
|
||
benc: for example, consider CGI output. HTTP/1.1 servers typically use a chunked transfer encoding with CGI output, hence they don't need to worry about specifying a Content-Length. HTTP/1.0, however, does not define chunked encoding, and HTTP/1.0 servers often don't enforce a valid Content-Length header. The HTTP/1.1 spec is very specific about this unfortunate circumstance. but, it should be noted that we also allow HTTP/1.1 servers to lie about the Content-Length, provided the connection is not persistent. this is consistent with IE's behavior.
Reporter | ||
Comment 6•23 years ago
|
||
-> 0.9.6 (unfortunately)
Target Milestone: mozilla0.9.5 → mozilla0.9.6
Reporter | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Reporter | ||
Updated•23 years ago
|
Whiteboard: [edge-case]
Reporter | ||
Comment 7•23 years ago
|
||
this is only an issue for broken servers, so moving out beyond mozilla1.0
Target Milestone: mozilla0.9.7 → mozilla1.0.1
Reporter | ||
Updated•22 years ago
|
Target Milestone: mozilla1.0.1 → ---
Comment 9•20 years ago
|
||
See RFE Bug 236084 for Content length optimizations for form upload
Reporter | ||
Comment 10•18 years ago
|
||
-> default owner
Assignee: darin → nobody
Status: ASSIGNED → NEW
Component: Networking: HTTP → Networking
QA Contact: tever → networking
Target Milestone: Future → ---
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•