Reject DATAGRAMs larger than the send buffer#2626
Conversation
134613b to
8976994
Compare
8976994 to
c9ceb0c
Compare
|
Updated this too. The size check now happens before the drop branch, so drop = false returns TooLarge for a datagram that cannot fit in the send buffer. I added a test for both send modes. |
|
What is the current state? |
c9ceb0c to
e93d77c
Compare
djc
left a comment
There was a problem hiding this comment.
This looks okay to me, thanks.
Perhaps you'll want to backport it to the 0.11.x branch, too?
e93d77c to
7960a26
Compare
Good point, yes, this should also be backported to 0.11.x. I checked that the same send buffer logic is still present there. I’ll address the small nits here first, and once this lands on main I’ll open a separate backport PR against 0.11.x |
djc
left a comment
There was a problem hiding this comment.
Please squash the changes from review into their originating commits.
302f328 to
f8135eb
Compare
|
Done, thanks. I rewrote the stack so the review changes are squashed into their originating commits, added the Tested with: |
Follow-up to #2625.
A DATAGRAM larger than
datagram_send_buffer_sizecannot fit in the outgoing send buffer by itself. This returnsTooLargebefore trying either send mode, so the behavior is the same fordrop = trueanddrop = false.Tested with: