Skip to content

SwiftQUIC: Bugfix in inboundShortheader - #57

Open
agnosticdev wants to merge 3 commits into
mainfrom
agnosticdev/InboundShortHeader
Open

SwiftQUIC: Bugfix in inboundShortheader#57
agnosticdev wants to merge 3 commits into
mainfrom
agnosticdev/InboundShortHeader

Conversation

@agnosticdev

Copy link
Copy Markdown
Collaborator

This PR fixes incorrect logic when checking the packet DCID against what should be the path SCID in handleInboundShortHeader:

packet.destinationConnectionID == path.scid

This PR also optimizes the equality check for QUICConnectionID to now be constant time. This is based on a helpful post from Karoy here. In the QUICStreamLoad benchmark the CPU usage for this equality check no longer even shows up and is completely optimized away.

Comment thread Sources/SwiftNetwork/QUIC/QUICConnectionID.swift Outdated
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.

4 participants