mirror of
https://github.com/necronicle/z2k.git
synced 2026-05-02 05:20:35 +00:00
Two bugs causing "Connecting..." hang: 1. tunnel.go: streamReadLoop was deferred until CONNECT_OK arrived, but client already sends TLS ClientHello before that. Data was lost → DC never responded → timeout. Fix: start readLoop immediately after sending CONNECT frame. 2. worker.js: connect() was called but socket.opened was not awaited before sending CONNECT_OK. Fix: await socket.opened, and fix Uint8Array buffer slicing for DATA relay. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
7.4 MiB
Executable file
7.4 MiB
Executable file