[Bug 212716] recv() with MSG_WAITALL doesn't always unblock on EOF

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 01 Sep 2023 00:32:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212716

--- Comment #11 from Greg Becker <greg@codeconcepts.com> ---
Thanks Mark, agreed.  I've moved the check up to the pr_rcvd'd block and made
it contingent upon sb_mb being NULL (which is what I was trying to leverage in
the original patch), and that seems to be working well.

I've also added a KASSERT to sbwait() as suggested.  Haven't tripped it yet,
but I expect we'll want to thoroughly test it.  I'll post the patch in a bit,
but I want to spend some more time investigating soreceive_generic() for any
holes where it might bail out having not delivered all available data first.

-- 
You are receiving this mail because:
You are the assignee for the bug.