Commit Graph
120 Commits
Author SHA1 Message Date
ILLUSIA 7715214f43 Merge pull request #33 from LainHE/fix/acceleration-relay-reconnect-upstream
fix(acceleration-relay): rebuild a self-closed tunnel on reconnect
2026-10-15 22:31:50 +08:00
LainHE 7977572362 fix(acceleration-relay): rebuild a self-closed tunnel on reconnect
An acceleration tunnel can tear itself down on its own: a socket error, a relay
OPEN_ERR/CLOSE frame, or an open timeout runs closeSockets(), which closes both
UDP sockets and leaves every later sendFrame() a silent no-op.

TSClient kept the adapter bound to that tunnel's now-dead local port and only
rebuilt the transport when adapter or client were null. An auto-reconnect
therefore dialed a port nobody reads, and because a closed tunnel reports
nothing, the session could never recover and never surfaced an error either.

- expose isClosed() on AccelerationRelayClient so callers can distinguish a live
  tunnel from one that tore itself down
- drop a stale tunnel together with its adapter and SDK client before connect()
  decides whether to rebuild the transport, detaching first so a late
  "disconnected" from the retired client cannot re-enter the reconnect path
- cover the reconnect guard with regression tests in ts-client.test.ts

Verified: tsc clean; ts-client.test.ts 35/35 pass (incl. the two new guards).
2026-10-15 21:36:31 +08:00
LainHE feb50d29c1 fix(acceleration-relay): report socket errors instead of throwing into the void
The relay's socket error listener ended with `throw error`. A listener that throws
escapes EventEmitter.emit, so it became an uncaught exception that terminated the
whole process. Because the throw also aborts the remaining listeners, it prevented
the startup promise from ever settling when the socket failed to bind.

- extract an idempotent shutdown() used by both close() and error handling
- reject the startup promise when the failure happens before listening, so a failed
  bind behaves like any other rejected startup rather than a process crash
- tear the relay down and report via a new onError callback once it is running
- release the socket and sweep interval on a synchronous bind failure, which never
  emits error at all
- add 3 regression tests covering bind failure, a surviving relay after a failed
  sibling startup, and idempotent close
- register the new test file in the npm test list so CI actually runs it

Verified: tsc --noEmit is clean and the 3 new tests pass. Before the fix the same
bind failure terminated the process with an uncaught EADDRINUSE instead of
rejecting the startup promise.
2026-10-15 16:20:19 +08:00
illusia 7fd1ea96fe feat: complete runtime and KAAK skin updates 2026-10-12 23:06:55 +08:00
illusia 9c8647df50 fix: pass channel password flags from TeamSpeak SDK 2026-10-12 10:51:34 +08:00
illusia cec2a81549 fix: show password protected channels 2026-10-12 10:34:06 +08:00
illusia 6c57868903 fix(voice): read server banner from client handshake 2026-10-11 20:40:01 +08:00
illusia 398a4d6c7f feat(kaak): render TeamSpeak server banner 2026-10-11 19:50:35 +08:00
illusia 17fb27b89a fix: expose server identity and refine KAAK client 2026-10-11 17:14:56 +08:00
Corrupted ILLUSIA a3bf476db6 feat(kaak): show channel occupancy limits 2026-10-10 22:25:01 +08:00
illusia efa0b85a0e fix: preserve invites on nickname lookup failure 2026-10-09 00:26:21 +08:00
yumi 60d3cfd569 feat: support TeamSpeak server nickname connections 2026-10-08 23:48:47 +08:00
illusia 0a552f7ee8 fix: consolidate audited dev updates 2026-10-08 10:32:59 +08:00
illusia 921e83dfb3 fix: acknowledge TS6 screen cleanup and include removal reason 2026-10-03 14:31:45 +08:00
illusia 77fef3bed9 fix: restore input mute after TeamSpeak flood rejection 2026-10-03 14:06:07 +08:00
illusia d327c6f179 fix: negotiate only supported Opus audio before WebRTC activation 2026-10-03 09:38:59 +08:00
illusia 7baeff00ba fix: preserve continuous Opus state in WebRTC downlink 2026-10-03 09:28:11 +08:00
illusia 777c779d79 fix: keep accompaniment audible while microphone is muted 2026-10-03 09:18:49 +08:00
illusia db08fbda6b fix: scope session state and confirm chat destinations 2026-10-01 15:46:52 +08:00
illusia 878e94a93a refactor: scope SDK events and directory state to their session 2026-10-01 13:42:57 +08:00
illusia 2047e30984 fix: keep avatar transfers on their original SDK connection 2026-10-01 13:30:18 +08:00
illusia 3dfd25dab7 fix: bind member avatar downloads to connection lifecycles 2026-10-01 13:25:55 +08:00
illusia c8417edd7d refactor: isolate session audio and harden gateway teardown 2026-10-01 13:16:59 +08:00
illusia f0712fa3fc refactor: share admin contracts and isolate page styles 2026-10-01 10:55:36 +08:00
illusia e2f0a43762 fix: cancel stale voice operations and isolate Android startup 2026-10-01 10:08:18 +08:00
illusia 8960189bc7 refactor: isolate gateway commands and screen-sharing coordination 2026-10-01 09:20:11 +08:00
illusia f4cbd61cff refactor: share wire contracts and isolate screen-sharing lifecycle 2026-10-01 09:06:15 +08:00
illusia 541a216c4d test: establish gateway refactoring checks and prevent stale directory entries 2026-10-01 08:34:04 +08:00
illusia aeaeb15965 feat: add Android gateway preview and refactoring plan 2026-10-01 08:13:46 +08:00
illusia 0a4fff6f6f feat: report live voice status and harden target handling 2026-09-28 22:28:16 +08:00
illusia e09a19b7b4 feat(skins): ship protected built-ins and instance defaults 2026-09-27 00:45:29 +08:00
illusia 2b7e908d31 feat: add customizable skin support 2026-09-26 08:59:05 +08:00
illusia 1bab4df64e fix: apply screen share output limits at sender 2026-09-23 14:34:48 +08:00
illusia 79b91fca44 feat: refine screen share member controls 2026-09-22 11:31:30 +08:00
illusia 6a821b760e fix: sync mute state and handle move permissions 2026-09-22 10:50:53 +08:00
illusia 6539479d10 feat: show homepage visitor number 2026-09-22 00:09:33 +08:00
illusia 8ed3e788be feat: add STUN candidates for screen sharing 2026-09-21 22:24:24 +08:00
illusia 21d53a30c9 fix: target native screen source during browser joins 2026-09-21 18:17:37 +08:00
illusia 22656b2e7d feat: bridge screen sharing with native ts6 clients 2026-09-21 17:51:43 +08:00
illusia 7b35c63a74 fix: isolate native screen share from browser p2p 2026-09-21 08:29:37 +08:00
illusia 6b9038da6c fix: include viewer id in native screen join 2026-09-21 06:06:39 +08:00
illusia 7ea63c525e fix: clean up pending screen share starts 2026-09-21 05:52:22 +08:00
illusia 3d0b8a5c97 feat: show screen share viewers 2026-09-21 05:49:11 +08:00
illusia f8554fc991 fix: harden browser screen share p2p signaling 2026-09-21 00:54:40 +08:00
illusia a3dad55c76 fix: forward native screen share join responses 2026-09-20 23:48:31 +08:00
illusia 0b29742bce feat: discover existing native screen streams 2026-09-20 23:33:51 +08:00
illusia c2c38fa011 Merge remote-tracking branch 'origin/master' into dev 2026-09-20 23:31:04 +08:00
illusia 578217ba41 fix: use native screen share join requests 2026-09-20 23:28:58 +08:00
illusia d75bdccfd9 feat: add direct P2P screen sharing signaling 2026-09-20 23:15:58 +08:00
illusia 67c7a27af6 fix: move members without channel passwords 2026-09-19 11:47:56 +08:00