mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-12-03 03:44:54 +00:00
Two bugs prevented the TLS handshake from completing: 1. TlsAcceptor NEED_UNWRAP always called stream.read() even when netIn already had data from a previous read. When the client sends ClientKeyExchange + ChangeCipherSpec + Finished in a single mux DATA frame, the first unwrap consumed part of it, the loop hit NEED_UNWRAP again and blocked on stream.read() forever. Fix: only read from the stream when netIn is empty. 2. MuxStreamImpl.read() used flow.first() which throws NoSuchElementException on empty flow completion. Changed to Channel.receive() which throws ClosedReceiveChannelException with a clearer error message. Verified: full TLS handshake completes end-to-end through the relay passthrough to the device (CN=main-board.rousecontext.com, TLSv1.2). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| bridge | ||
| mcp | ||
| tunnel | ||