[Bug 295009] UDP receive with zero-size buffer immediately returns, no wait, no EAGAIN
[email protected] Thu, 21 May 2026 19:34:59 +0000
| Newsgroups | gmane.os.freebsd.devel.net |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295009 Gleb Smirnoff <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected], | |[email protected] --- Comment #1 from Gleb Smirnoff <[email protected]> --- Thanks for submission! Probably the implementation uses a logic that with zero size receive buffer the buffer was successfully filled with data, thus non-error return. This case is not explicitly covered neither by the specification not by the documentation. However, the case of "no data and non-blocking" is explicitly covered by specification. I tend to agree that the current behavior is not correct. But it has been this way for 40 years. Thus, I would suggest to change it in FreeBSD 16.0 only. -- You are receiving this mail because: You are the assignee for the bug.