fix(app): retain idle preview sockets and release auth listeners

This commit is contained in:
2026-10-21 13:37:18 +01:00
parent 5cd269fca4
commit ae352bb9c6
4 changed files with 17 additions and 5 deletions
+2
View File
@@ -117,6 +117,8 @@ test('authenticates and maps same-origin WebSocket Origin; bytes flow both direc
const upgraded = seen.find((item) => item.upgraded);
assert.equal(upgraded.headers.origin, new URL(`http://${seen[0].headers.host}`).origin);
assert.equal(upgraded.headers.cookie, 'sid=yes');
await new Promise((resolve) => setTimeout(resolve, 5200));
assert.equal(socket.destroyed, false, 'healthy idle websocket must not time out');
const payload = Buffer.from([0x81, 0x02, 0x6f, 0x6b]);
socket.write(payload);
await new Promise((resolve, reject) => {