mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1019918 - Remove pushed stream from SpdyPushCache when cleaning it up. r=mcmanus
--HG-- extra : rebase_source : 2c1c23668adf041eb27c8f0509aebfbfab9497ca
This commit is contained in:
parent
ceedb2c411
commit
f875e6894a
@ -935,8 +935,22 @@ Http2Session::CleanupStream(Http2Stream *aStream, nsresult aResult,
|
||||
uint32_t id = aStream->StreamID();
|
||||
if (id > 0) {
|
||||
mStreamIDHash.Remove(id);
|
||||
if (!(id & 1))
|
||||
if (!(id & 1)) {
|
||||
mPushedStreams.RemoveElement(aStream);
|
||||
Http2PushedStream *pushStream = static_cast<Http2PushedStream *>(aStream);
|
||||
nsAutoCString hashKey;
|
||||
pushStream->GetHashKey(hashKey);
|
||||
nsILoadGroupConnectionInfo *loadGroupCI = aStream->LoadGroupConnectionInfo();
|
||||
if (loadGroupCI) {
|
||||
SpdyPushCache *cache = nullptr;
|
||||
loadGroupCI->GetSpdyPushCache(&cache);
|
||||
if (cache) {
|
||||
Http2PushedStream *trash = cache->RemovePushedStreamHttp2(hashKey);
|
||||
LOG3(("Http2Session::CleanupStream %p aStream=%p pushStream=%p trash=%p",
|
||||
this, aStream, pushStream, trash));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
RemoveStreamFromQueues(aStream);
|
||||
|
Loading…
Reference in New Issue
Block a user