Revert "Implement a threadsafe & revised version of http2PushedStream."

Backed out because of gcc build failures.

This reverts commit 66fae1d81013a2321e7d607a426f834a01b847ce.
This commit is contained in:
wolfbeast 2019-07-21 21:30:26 +02:00 committed by Roy Tam
commit 6666e772e0
9 changed files with 32 additions and 144 deletions

View file

@ -1827,18 +1827,13 @@ nsHttpConnectionMgr::ProcessNewTransaction(nsHttpTransaction *trans)
trans->SetPendingTime();
RefPtr<Http2PushedStreamWrapper> pushedStreamWrapper =
trans->GetPushedStream();
if (pushedStreamWrapper) {
Http2PushedStream* pushedStream = pushedStreamWrapper->GetStream();
if (pushedStream) {
LOG((" ProcessNewTransaction %p tied to h2 session push %p\n", trans,
pushedStream->Session()));
return pushedStream->Session()->AddStream(trans, trans->Priority(), false,
nullptr)
? NS_OK
: NS_ERROR_UNEXPECTED;
}
Http2PushedStream *pushedStream = trans->GetPushedStream();
if (pushedStream) {
LOG((" ProcessNewTransaction %p tied to h2 session push %p\n",
trans, pushedStream->Session()));
return pushedStream->Session()->
AddStream(trans, trans->Priority(), false, nullptr) ?
NS_OK : NS_ERROR_UNEXPECTED;
}
nsresult rv = NS_OK;