Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #354 from mozilla/workaround-connection-pool
Browse files Browse the repository at this point in the history
Workaround for connection pool timeout. Fixes #352
  • Loading branch information
bakulf authored Aug 9, 2019

Verified

This commit was signed with the committer’s verified signature.
lars-reimann Lars Reimann
2 parents 505c8f5 + 6195a02 commit ed9d74a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
@@ -54,6 +54,7 @@ class Background {
constructor() {
log("constructor");

this.connectionId = 0;
this.survey = new Survey();
this.exemptTabStatus = new Map();
this.fxaEndpoints = new Map();
@@ -498,7 +499,7 @@ class Background {
host: this.proxyHost,
port: this.proxyPort,
proxyAuthorizationHeader: this.proxyAuthorizationHeader,
connectionIsolationKey: this.proxyAuthorizationHeader + additionalConnectionIsolation,
connectionIsolationKey: this.proxyAuthorizationHeader + additionalConnectionIsolation + this.connectionId,
}];
}

@@ -987,6 +988,7 @@ class Background {
}

async onConnectivityChanged(connectivity) {
this.connectionId += 1;
log("connectivity changed!");

// Offline -> online.

0 comments on commit ed9d74a

Please sign in to comment.