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

Commit ed9d74a

Browse files
authored
Merge pull request #354 from mozilla/workaround-connection-pool
Workaround for connection pool timeout. Fixes #352
2 parents 505c8f5 + 6195a02 commit ed9d74a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/background.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class Background {
5454
constructor() {
5555
log("constructor");
5656

57+
this.connectionId = 0;
5758
this.survey = new Survey();
5859
this.exemptTabStatus = new Map();
5960
this.fxaEndpoints = new Map();
@@ -498,7 +499,7 @@ class Background {
498499
host: this.proxyHost,
499500
port: this.proxyPort,
500501
proxyAuthorizationHeader: this.proxyAuthorizationHeader,
501-
connectionIsolationKey: this.proxyAuthorizationHeader + additionalConnectionIsolation,
502+
connectionIsolationKey: this.proxyAuthorizationHeader + additionalConnectionIsolation + this.connectionId,
502503
}];
503504
}
504505

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

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

992994
// Offline -> online.

0 commit comments

Comments
 (0)