Closed
Bug 282441
Opened 20 years ago
Closed 19 years ago
map tiles sometimes fail to load when pipelining is enabled
Categories
(Core :: Networking: HTTP, defect)
Core
Networking: HTTP
Tracking
()
RESOLVED
FIXED
mozilla1.8beta2
People
(Reporter: darin.moz, Assigned: darin.moz)
References
()
Details
Attachments
(1 file)
1.19 KB,
patch
|
Biesinger
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
map tiles sometimes fail to load when pipelining is enabled after some analysis the problem appears to be caused by the fact that the server closes the connection after serving only the first request in a pipeline. as a result, we end up retrying requests a lot. eventually some of the requests reach their maximal retry limit. this problem is only really noticed when a lot of tiles need to be fetched. the solution is probably to remember sites that fail in this manner, and then we should avoid pipelining to them. it might be good to make this be a simple LRU based cache of recently rejected servers (use nsHttpConnectionInfo::HashKey).
Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.8beta2
Assignee | ||
Comment 1•19 years ago
|
||
my analysis of this problem was actually wrong. in fact, it turns out that the src attribute of image elements are changed so frequently, that we are canceling http loads left and right. as a result, we end up breaking pipelines a lot, and that is what causes the problem. though i did see some connection resets, client driven cancelation was in fact the dominating factor.
Assignee | ||
Comment 2•19 years ago
|
||
This is an experimental patch. With this problem, we disable pipelining for a transaction whenever it is being restarted. This makes it so that we adapt to frequent restart problems induced by pipelining-related connection failures. We can still do better than this by avoiding the connection close when a pipelined request is canceled, but for now I think this will go a long way to helping.
Assignee | ||
Updated•19 years ago
|
Attachment #176546 -
Flags: superreview?(bzbarsky)
Attachment #176546 -
Flags: review?(cbiesinger)
Assignee | ||
Comment 3•19 years ago
|
||
With some testing, I'm convinced that this is the right patch.
Comment 4•19 years ago
|
||
Comment on attachment 176546 [details] [diff] [review] v1 patch Seems reasonable...
Attachment #176546 -
Flags: superreview?(bzbarsky) → superreview+
Comment 5•19 years ago
|
||
Comment on attachment 176546 [details] [diff] [review] v1 patch will this fix some of the other pipelining bug reports we have?
Attachment #176546 -
Flags: review?(cbiesinger) → review+
Assignee | ||
Comment 6•19 years ago
|
||
> will this fix some of the other pipelining bug reports we have?
yes, this may in fact be a duplicate of some other bug reports, but i don't have
the cycles to go through those right now.
Assignee | ||
Comment 7•19 years ago
|
||
fixed-on-trunk
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 8•19 years ago
|
||
It seems that this checkin is to blame for brad malloc increasing from 286K to 4.96M, and leaks increasing as well.
Assignee | ||
Comment 9•19 years ago
|
||
> It seems that this checkin is to blame for brad malloc increasing from 286K to
> 4.96M, and leaks increasing as well.
nope, it was a fluke in the brad tinderbox apparently.
You need to log in
before you can comment on or make changes to this bug.
Description
•