Repository navigation
Conversation
Open
randombit
approved these changes
Nov 27, 2026
A flight of handshake messages either expects a further flight from the peer or it concludes an interaction. For the latter, DTLS peers must acknowledge the flight explicitly with an ACK message (RFC 9147 5.7) while TLS flights are implicitly acknowledged by the reliable transport. The new Expected_Response enum is passed down from the handshake state machines via Channel_Impl_13::send_flight() to the Channel_IO. The merged notify_received_complete_flight() reports the received flight's expectation back and replaces the special-cased notify_received_final_flight() hook. This is a pure API change without behavioural impact. It will be used by DTLS 1.3 to detect the ACK that concludes a message exchange.
reneme
force-pushed
the
dtls13/declare_flight_response_expecations
branch
from
November 27, 2026 15:37
e2349d5 to
834858d
Compare
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.
In TLS a flight of handshake messages either expects a flight from the peer as response or it concludes an interaction. E.g.
ClientHelloexpects the main server flight; the client'sFinisheddoes not expect a reply from the server because it concludes the handshake. Similarly, with post-handshake exchanges.In DTLS 1.3 (#5000), incoming response-flights implicitly ACK a flight and the final flight must be explicitly ACKed. These implicit as well as explicit ACKs control message retransmission in DTLS 1.3.
DTLS_Channel_IOneeds this state machine expectation explicitly to decide if and how to ACK each flight.Therefore, the new
Expected_Responseenum is passed down from the state machines viasend_flight()to theChannel_IO. Additionally, this mergesnotify_received_complete_flight()andnotify_received_final_flight()into a single notifier that also takesExpected_Responseto codify the peer's expectation for the just-received flight.This is a pure API change without behavioural impact in TLS.