From be7d39ea68524c7ce8ab5e5d2e413e7ae2f5ec65 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 05:10:27 +0000 Subject: [PATCH] Make the WebSocket handshake through TelnetNegotiationCore's client WebSocketProbe built its own ClientWebSocket so that it could dial the addresses the scope gate ruled on. TNC 4.13.6 takes the caller's invoker (TelnetWebSocketClient.ConnectAsync(uri, invoker, configure, bridges)), so the probe now hands it a SocketsHttpHandler whose ConnectCallback dials those addresses, and gets the library's retry with no offer instead of carrying its own. The offer is now what a TNC client offers, in its order: telnet.mudstandards.org, telnet, gmcp, terminal, then json, which the probe adds as a bridge that is never made. A server that chooses the plain "telnet" name is recorded as choosing it. The library disposes a socket whose handshake failed, so a delegating handler keeps the last response status for the "HTTP 400" detail. TelnetNegotiationCore 4.6.1 -> 4.13.6. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Rqqt7TMv2mtCTKbjZigQWZ --- Directory.Packages.props | 2 +- src/MUI.Crawl/WebSocket/WebSocketProbe.cs | 135 +++++++++--------- .../WebSocket/WebSocketProbeTests.cs | 16 +++ 3 files changed, 84 insertions(+), 69 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 211c8f0..62fc08d 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -19,7 +19,7 @@ send in answer to DO COMPRESS2; before it, everything after their connect screens, MSSP report included, arrived as zlib read as text. --> - +