Closed
Bug 755467
Opened 12 years ago
Closed 12 years ago
SpdySession::RestrictConnections() should use conn->EverUsedSpdy()
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
RESOLVED
FIXED
mozilla15
People
(Reporter: mcmanus, Assigned: mcmanus)
References
Details
(Whiteboard: [spdy][http-conn][qa-])
Attachments
(1 file)
2.27 KB,
patch
|
mayhemer
:
review+
|
Details | Diff | Splinter Review |
The patch for 739522 was meant to detect cases where HTTP and SPDY were mixed to the same host and allow 1 new connection when that was true. It keyed "spdy" off of nsHttpConnection::CanDirectlyActivate() which returns true on spdy connections that can accept more transactions. But it returns false for spdy connections that are shutting down.. while that might be desirable, the purpose of that change was just to find spdy connections, which can be done through mEverUsedSpdy
Assignee | ||
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
Comment on attachment 624160 [details] [diff] [review] ptach 0 Review of attachment 624160 [details] [diff] [review]: ----------------------------------------------------------------- It's questionable whether you should then set mEverUsedSpdy at the bottom of nsHttpConnection::StartSpdy(), when the connection really used SPDY. Same for mUsingSpdy, but that is a larger change. For the test, this OK. r=honzab ::: netwerk/protocol/http/nsHttpConnection.h @@ +164,5 @@ > void BeginIdleMonitoring(); > void EndIdleMonitoring(); > > bool UsingSpdy() { return mUsingSpdy; } > + bool EverUsedSpdy(){ return mEverUsedSpdy; } Fix the space
Attachment #624160 -
Flags: review?(honzab.moz) → review+
Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Honza Bambas (:mayhemer) from comment #2) > Comment on attachment 624160 [details] [diff] [review] > ptach 0 > > Review of attachment 624160 [details] [diff] [review]: > ----------------------------------------------------------------- > > It's questionable whether you should then set mEverUsedSpdy at the bottom of > nsHttpConnection::StartSpdy(), when the connection really used SPDY. > setting them at the top is right.. NPN has returned spdy/2 so we should only talk spdy. The real bug might be that those error paths don't talk spdy without the spdysession that they're having trouble allocating :) [fortunately those shouldn't be able to happen due to anything other than programming errors]
Assignee | ||
Comment 4•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5c90425ab44e if this addresses 753663 we'll port it.. but lets find out what it does (if anything) to the nightly crash stats first.
status-firefox13:
--- → affected
status-firefox14:
--- → affected
status-firefox15:
--- → fixed
Target Milestone: --- → mozilla15
Assignee | ||
Updated•12 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Whiteboard: [spdy] → [spdy][http-conn]
Updated•12 years ago
|
Whiteboard: [spdy][http-conn] → [spdy][http-conn][qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•