diff options
| author | Igor Soarez <igor@soarez.org> | 2026-11-20 16:38:11 +0200 |
|---|---|---|
| committer | Igor Soarez <igor@soarez.org> | 2026-11-20 16:38:11 +0200 |
| commit | 31eee500cd9c570c960bbb9a50209c0c21c1b716 (patch) | |
| tree | 68c3fd9a7a093493b821552a76f8b55e84a41591 /package.json | |
| parent | 7658ed71898c7daca2661c7d15ffe03c8608c865 (diff) | |
server.close() refuses new connections but leaves open the ones busy at
that moment, such as the extension posting a result. When the owner pi
reloaded, Chrome sent the extension's next /next on such a connection,
and the stopped bridge answered it, and every poll after it, for good.
Commands went to the new owner, which never heard from Chrome: "not
polling (last seen never)" until the extension was reloaded. Seen
2026-11-20 with lsof: Chrome connected to a pi that no longer listened.
stop() now closes every connection once the final answers are written,
so the extension reconnects to whoever owns the port next.
bridge-handover.test.mjs covers a connection busy at the stop and one
opened before it; both reached the stopped bridge before this change.
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index 4995d3c..d75ef59 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "pi-chrome", "version": "0.15.57", "scripts": { - "test": "node test-suite/unit/csp-eval.test.mjs && node test-suite/unit/automation-target.test.mjs && node test-suite/unit/session-cleanup.test.mjs && node test-suite/unit/background-policy.test.mjs && node test-suite/unit/input-reliability.test.mjs && node test-suite/unit/chrome-command.test.mjs && node test-suite/unit/bridge-resilience.test.mjs && node test-suite/unit/cdp-passthrough.test.mjs && node test-suite/unit/type-evidence.test.mjs && node test-suite/unit/hidden-input.test.mjs && node test-suite/unit/console-capture.test.mjs && node test-suite/unit/prompt-section.test.mjs && node test-suite/unit/upload-guard.test.mjs && node test-suite/unit/grant-scope.test.mjs && node test-suite/unit/leave-site-prompt.test.mjs && node test-suite/unit/user-window.test.mjs && node test-suite/unit/overlay.test.mjs && node test-suite/unit/sandboxed-snapshot.test.mjs", + "test": "node test-suite/unit/csp-eval.test.mjs && node test-suite/unit/automation-target.test.mjs && node test-suite/unit/session-cleanup.test.mjs && node test-suite/unit/background-policy.test.mjs && node test-suite/unit/input-reliability.test.mjs && node test-suite/unit/chrome-command.test.mjs && node test-suite/unit/bridge-resilience.test.mjs && node test-suite/unit/cdp-passthrough.test.mjs && node test-suite/unit/type-evidence.test.mjs && node test-suite/unit/hidden-input.test.mjs && node test-suite/unit/console-capture.test.mjs && node test-suite/unit/prompt-section.test.mjs && node test-suite/unit/upload-guard.test.mjs && node test-suite/unit/grant-scope.test.mjs && node test-suite/unit/leave-site-prompt.test.mjs && node test-suite/unit/user-window.test.mjs && node test-suite/unit/overlay.test.mjs && node test-suite/unit/sandboxed-snapshot.test.mjs && node test-suite/unit/bridge-handover.test.mjs", "version": "node scripts/sync-manifest-version.js", "prepublishOnly": "node scripts/sync-manifest-version.js" }, |
