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

Commit 6195a02

Browse files
author
Jonathan Kingston
committed
Workaround for connection pool timeout. Fixes #352
1 parent 6b7ad67 commit 6195a02

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();
@@ -484,7 +485,7 @@ class Background {
484485
host: this.proxyHost,
485486
port: this.proxyPort,
486487
proxyAuthorizationHeader: this.proxyAuthorizationHeader,
487-
connectionIsolationKey: this.proxyAuthorizationHeader + additionalConnectionIsolation,
488+
connectionIsolationKey: this.proxyAuthorizationHeader + additionalConnectionIsolation + this.connectionId,
488489
}];
489490
}
490491

@@ -972,6 +973,7 @@ class Background {
972973
}
973974

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

977979
// Offline -> online.

0 commit comments

Comments
 (0)