Repository navigation
Dial WebSocket worlds through an invoker of our own - #147
Merged
Merged
Conversation
TelnetNegotiationCore 4.13.6 takes an HttpMessageInvoker for the WebSocket handshake. WebSocketTransport now owns one: a SocketsHttpHandler that follows no redirect, keeps no cookies, checks the certificate by TcpTransport's rule through SslOptions, and dials the socket with NoDelay. Its ConnectCallback records the endpoint reached, which RemoteDescription now names beside the address. The invoker lives until the transport is disposed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rqqt7TMv2mtCTKbjZigQWZ
The handler's socket is dual-mode on the CI runner, so a loopback peer came back as [::ffff:127.0.0.1]. Unmap it. 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
HarryCordewener
added a commit
that referenced
this pull request
Nov 24, 2026
v0.3.7 was published without a section of its own, so the log file name fix it shipped was still under [Unreleased]. It moves to [0.3.7] with the WebSocket handshake change (#147), and the rest becomes 0.3.8. Claude-Session: https://claude.ai/code/session_01Rqqt7WtRAmocwURbWZTdxW Co-authored-by: Claude <noreply@anthropic.com>
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
Takes TelnetNegotiationCore 4.13.6 (TNC #201:
TelnetWebSocketClient.ConnectAsync(uri, invoker, configure, bridges, ct)) and givesWebSocketTransportits ownHttpMessageInvoker:SocketsHttpHandlerwithAllowAutoRedirect = falseandUseCookies = false.SslOptions.RemoteCertificateValidationCallback, byTcpTransport's rule (no errors, orAllowInvalidCertificates).ClientWebSocketOptions.RemoteCertificateValidationCallbackthrows once an invoker is passed.ConnectCallbackdials withNoDelayand records the endpoint reached.RemoteDescriptionis nowws://host:port/path (ip:port), asTcpTransportreports its endpoint. Through a proxy that endpoint is the proxy's.configure.What a user would notice: nothing.
RemoteDescriptionis shown nowhere yet and .NET's default handler already setsNoDelay, so this is labelledskip-changelog. It is the parity step Grave asked for across SharpMUSH, SharpMUTerm and MUIndex.TlsTargetHostis still not applied on this path:SocketsHttpHandlersets the SNI name from the request URI, not fromSslOptions.TargetHost, and nothing insrcsetsTlsTargetHosttoday.Tests: new
TheTransportSaysWhichEndpointTheHandshakeReachedagainst the loopback server. Built Release with no warnings. Core suite 1,799/1,800 locally. The one failure,AReadOnlyCacheDirectory_DegradesToMemoryOnly, fails the same way onmainhere because the container runs as root.Generated by Claude Code