Backed out changeset 3765a21fa94c (bug 1706377) for wpt failure on 001.html . CLOSED TREE

This commit is contained in:
Narcis Beleuzu 2023-06-06 17:43:11 +03:00
parent e23c623ada
commit 09250813d0
3 changed files with 14 additions and 15 deletions

View File

@ -12412,12 +12412,12 @@
- name: network.http.http2.ping-threshold
type: RelaxedAtomicInt32
value: 20
value: 58
mirror: always
- name: network.http.http2.ping-timeout
type: RelaxedAtomicInt32
value: 5
value: 8
mirror: always
- name: network.http.http2.send-buffer-size

View File

@ -2145,9 +2145,6 @@ nsresult Http2Session::RecvPing(Http2Session* self) {
if (self->mInputFrameFlags & kFlag_ACK) {
// presumably a reply to our timeout ping.. don't reply to it
self->mPingSentEpoch = 0;
// We need to reset mPreviousUsed. If we don't, the next time
// Http2Session::SendPing is called, it will have no effect.
self->mPreviousUsed = false;
} else {
// reply with a ack'd ping
self->GeneratePing(true);
@ -4331,7 +4328,6 @@ nsresult Http2Session::PushBack(const char* buf, uint32_t len) {
void Http2Session::SendPing() {
MOZ_ASSERT(OnSocketThread(), "not on socket thread");
LOG(("Http2Session::SendPing %p mPreviousUsed=%d", this, mPreviousUsed));
if (mPreviousUsed) {
// alredy in progress, get out

View File

@ -2141,15 +2141,18 @@ nsHttpHandler::Observe(nsISupports* subject, const char* topic,
mAltSvcCache->ClearAltServiceMappings();
}
} else if (!strcmp(topic, NS_NETWORK_LINK_TOPIC)) {
if (mConnMgr) {
rv = mConnMgr->PruneDeadConnections();
if (NS_FAILED(rv)) {
LOG((" PruneDeadConnections failed (%08x)\n",
static_cast<uint32_t>(rv)));
}
rv = mConnMgr->VerifyTraffic();
if (NS_FAILED(rv)) {
LOG((" VerifyTraffic failed (%08x)\n", static_cast<uint32_t>(rv)));
nsAutoCString converted = NS_ConvertUTF16toUTF8(data);
if (!strcmp(converted.get(), NS_NETWORK_LINK_DATA_CHANGED)) {
if (mConnMgr) {
rv = mConnMgr->PruneDeadConnections();
if (NS_FAILED(rv)) {
LOG((" PruneDeadConnections failed (%08x)\n",
static_cast<uint32_t>(rv)));
}
rv = mConnMgr->VerifyTraffic();
if (NS_FAILED(rv)) {
LOG((" VerifyTraffic failed (%08x)\n", static_cast<uint32_t>(rv)));
}
}
}
} else if (!strcmp(topic, "application-background")) {