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)

defect

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.
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?
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.
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.
-> mozilla 0.9.5
Target Milestone: mozilla0.9.4 → mozilla0.9.5
-> 0.9.6 (unfortunately)
Target Milestone: mozilla0.9.5 → mozilla0.9.6
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Whiteboard: [edge-case]
this is only an issue for broken servers, so moving out beyond mozilla1.0
Target Milestone: mozilla0.9.7 → mozilla1.0.1
Target Milestone: mozilla1.0.1 → ---
mass futuring of untargeted bugs
Target Milestone: --- → Future
See RFE Bug 236084 for Content length optimizations for form upload
-> default owner
Assignee: darin → nobody
Status: ASSIGNED → NEW
Component: Networking: HTTP → Networking
QA Contact: tever → networking
Target Milestone: Future → ---
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.