Repository navigation
Make both WebSocket dials through TelnetNegotiationCore's client - #219
Merged
Merged
Conversation
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rqqt7TMv2mtCTKbjZigQWZ
Takes TelnetNegotiationCore 4.13.6 over main's 4.13.5. ProbeLine now hands its vetted-address invoker to TelnetWebSocketClient.ConnectAsync rather than building the socket and the offer itself, so it also gets the library's retry with no subprotocol after an HTTP error, through the same ConnectCallback. The refused-upgrade test now serves that retry and checks it offered nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rqqt7TMv2mtCTKbjZigQWZ
HarryCordewener
marked this pull request as ready for review
November 16, 2026 06:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Grave · project thread
TelnetNegotiationCore 4.13.6 (HarryCordewener/TelnetNegotiationCore#201) adds
TelnetWebSocketClient.ConnectAsync(uri, invoker, configure, bridges). MUIndex had two hand-builtClientWebSockets so it could dial the addresses the scope gate ruled on. Both now hand the library aSocketsHttpHandlerwhoseConnectCallbackdials those addresses, and the library's own retry with no subprotocol goes through it too.WebSocketProbe(the crawl loop's handshake check):telnet.mudstandards.org,telnet,gmcp.,terminal., thenjson.mudstandards.org, added as a bridge the probe never makes. The plaintelnetname is new, and a server that chooses it is recorded as choosing it.DelegatingHandlerkeeps the last status for theHTTP 400detail.TheRetryWithNoOfferGoesToTheRuledAddressToo: an unresolvable name and a bridge that refuses the offer, so the retry upgrades only if it went through the ruled addresses.ProbeLine(the probe's WebSocket transport, from #216):OpenWebSocketAsynckeeps its invoker and calls the library instead of adding subprotocols itself. The offer is unchanged. New behaviour: after an HTTP error it dials once more with no offer, through the same callback. The remarks no longer say the helper is avoided.AnUpgradeTheServerRefusesIsAFailedDial's fixture now serves that retry, and the test checks two requests, the second offering nothing.Version: 4.13.5 → 4.13.6, merged over main's bump.
Not built or tested locally: the session cannot get the pinned .NET 11 RC SDK. CI is the check.
Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01Rqqt7TMv2mtCTKbjZigQWZ