Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix queuing 0-RTT data during handshake #1817

Merged
merged 1 commit into from
Jul 13, 2021
Merged

Conversation

ThadHouse
Copy link
Contributor

@ThadHouse ThadHouse commented Jul 13, 2021

Previously, if 0-RTT data was queued during the handshake, it has the potential to not queue the flush send. This makes it so if we have 0-RTT flags and sends are queued, we'll allow them to be flushed.

Also, there are cases where we could end up with stream data but no flags, which if this occured during the handshake would hit an assert. This assert is only there to tell if we're going to do no work, but this would only be a slight perf penalty when it does happen, so its not a valid assert

Fixes #1749.

Previously, if 0-RTT data was queued during the handshake, it has the potential to not queue the flush send. This makes it so if we have 0-RTT flags and sends are queued, we'll allow them to be flushed.

Also, there are cases where we could end up with stream data but no flags, which if this occured during the handshake would hit an assert. This assert is only there to tell if we're going to do no work, but this would only be a slight perf penalty when it does happen, so its not a valid assert
@ThadHouse ThadHouse added the Area: Core Related to the shared, core protocol logic label Jul 13, 2021
@ThadHouse ThadHouse requested a review from a team as a code owner July 13, 2021 19:57
@nibanks nibanks merged commit 1e1504b into main Jul 13, 2021
@nibanks nibanks deleted the thadhouse/sendflagswith0rtt branch July 13, 2021 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Core Related to the shared, core protocol logic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CXPLAT_DBG_ASSERT(QuicSendCanSendFlagsNow(Send)) during SpinQuic
3 participants