Repository navigation
Conversation
cf-rhett
marked this pull request as ready for review
November 20, 2026 01:21
cf-rhett
force-pushed
the
rhett/handshake-close-error
branch
2 times, most recently
from
November 20, 2026 01:55
f16eb7d to
486c1b7
Compare
The client connector reported any connection that closed before its handshake completed as "timed out", dropping quiche's close details. A client that rejected the server's certificate couldn't tell that apart from a peer close or a real timeout. The error's inner value is now a HandshakeClosed carrying the local and peer CONNECTION_CLOSE errors and whether the idle timeout fired, and its message says which of those happened. The io::ErrorKind is unchanged. ConnectionError::tls_alert() decodes the TLS alert from a CRYPTO_ERROR close code, so callers don't need to know the 0x100 offset.
cf-rhett
force-pushed
the
rhett/handshake-close-error
branch
from
November 30, 2026 12:44
486c1b7 to
121ff73
Compare
This branch has not been deployed
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.
When a client connection closes before its handshake completes, the connector returns "connection … timed out" and drops quiche's close details. A client that rejected the server's certificate can't tell that apart from a peer close or a real timeout, even though quiche recorded the TLS alert it sent.
This puts a
HandshakeClosedinside thatio::Error, carrying the local and peerCONNECTION_CLOSEerrors and whether the idle timeout fired, and addsConnectionError::tls_alert()to decode the alert from aCRYPTO_ERRORclose code. The error kind is unchanged, so callers that classify by kind see no difference, and the message now says why the connection closed instead of always "timed out".