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(s2n-quic-dc): skip sending empty packets in udp acceptor #2544

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

camshaft
Copy link
Contributor

@camshaft camshaft commented Mar 14, 2025

Description of changes:

We have some debug sanity checks in the UDP socket send code to make sure we're not wasting syscalls by sending empty packets (which are meaningless here). This code was triggering that in some of the testing I've been doing. This change, instead, checks if the packet is empty before calling it.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@camshaft camshaft marked this pull request as ready for review March 14, 2025 22:06
@camshaft camshaft merged commit 474082b into main Mar 14, 2025
126 checks passed
@camshaft camshaft deleted the camshaft/udp-acceptor-empty-pkt branch March 14, 2025 23:08
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.

2 participants