-
Notifications
You must be signed in to change notification settings - Fork 697
Allow writing and reading empty datagrams #2341
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
Conversation
Can one of the admins verify this patch? |
10 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic patch, thanks so much! ✨
@swift-server-bot test this please |
Motivation: Empty UDP datagrams could be used to have a meaning. Empty datagrams were being silently dropped on write. Receiving an empty diagram causes an assertion failure (possible DDoS). Modifications: Remove early exit when writing empty datagrams and non-empty assertion when reading them. Result: We can now write and read empty datagrams.
Head branch was pushed to by a user without write access
6acb5ff
to
ec05d2c
Compare
Thanks @Lukasa. For some reason, the first time I ran the automated linux tests manifest generator it output the wrong year in the copyright field. I just fixed that 2022 to 2023. |
@swift-nio-bot test this please |
Congratulations on being the first committer of 2023! Unfortunate that means you ran into some tooling limitations: I'll merge #2342 and then we can rebase this on top of it and get it landed. |
@swift-server-bot test this please |
Motivation:
Empty UDP datagrams could be used to have a meaning. Empty datagrams were being silently dropped on write. Receiving an empty diagram causes an assertion failure (possible DDoS).
Modifications:
Remove early exit when writing empty datagrams and non-empty assertion when reading them.
Result:
We can now write and read empty datagrams.