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

Only try to find index for QUIC packets with short header format #692

Merged
merged 1 commit into from Mar 11, 2024

Conversation

normanmaurer
Copy link
Member

@normanmaurer normanmaurer commented Mar 11, 2024

Motivation:

28ae7d2 added the QuicCodecDispatcher which will dispatch packets to the correct ChannelHandlerContext based on which id is encoded in destination connection id. Our implementation was not 100 % correct as it should only try to do the specific dispatching once a short header format was used.

Modifications:

  • Only try to decode the index out of the connection id for QUIC packets with short header format
  • Ensure we always correctly propagate channelReadComplete(...) even if we did not find the index
  • Adjust testing

Result:

Correct dispatching based on destination connection id

Motivation:

28ae7d2 added the QuicCodecDispatcher which will dispatch packets to the correct ChannelHandlerContext based on which id is encoded in destination connection id. Our implementation was not 100 % correct as it should only try to do the specific dispatching once a short header format was used.

Modifications:

- Only try to decode the index out of the connection id for QUIC packets with short header format
- Ensure we always correctly propagate channelReadComplete(...) even if we did not find the index.
- Adjust testing

Result:

Correct dispatching based on destination connection id
@normanmaurer normanmaurer merged commit 3c2a01f into main Mar 11, 2024
14 checks passed
@normanmaurer normanmaurer deleted the short_header_only branch March 11, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant