Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Sep 2023 00:32:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 212716] recv() with MSG_WAITALL doesn't always unblock on EOF
Message-ID:  <bug-212716-227-GYuS4UZTKZ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-212716-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-212716-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212716

--- Comment #11 from Greg Becker <greg@codeconcepts.com> ---
Thanks Mark, agreed.  I've moved the check up to the pr_rcvd'd block and ma=
de
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 bi=
t,
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-212716-227-GYuS4UZTKZ>