Skip to content

SwiftQUIC: Bugfix in inboundShortheader - #57

Merged
agnosticdev merged 3 commits into
mainfrom
agnosticdev/InboundShortHeader
Jul 29, 2026
Merged

SwiftQUIC: Bugfix in inboundShortheader#57
agnosticdev merged 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
@agnosticdev
agnosticdev merged commit af11e9c into main Jul 29, 2026
23 checks passed
@agnosticdev
agnosticdev deleted the agnosticdev/InboundShortHeader branch July 29, 2026 17:35
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