Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Sep 2023 12:53:15 +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-093rKZscUD@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 #18 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D862d2d514cb782353bce1af99d670db08=
b1e6c3c

commit 862d2d514cb782353bce1af99d670db08b1e6c3c
Author:     Greg Becker <becker.greg@att.net>
AuthorDate: 2023-09-09 23:38:24 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-09-27 12:33:08 +0000

    sockets: re-check socket state after call to pr_rcvd()

    Socket state may have changed after dropping the receive
    buffer lock in order to call pr_rcvd().  If the buffer is
    empty, re-check the state after reaquiring the lock and
    skip calling sbwait() if the socket is in error or the
    peer has closed.

    PR:             212716
    Reviewed by:    markj, glebius
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D41783

    (cherry picked from commit f44102411e1b16363e91a074c9c403069c550e4d)

 sys/kern/uipc_socket.c | 4 ++++
 1 file changed, 4 insertions(+)

--=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-093rKZscUD>