[Bug 227259] accept()/poll() and shutdown()/close() - not work as in FreeBSD10, may broke many apps
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Oct 3 17:40:47 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227259
--- Comment #18 from commit-hook at freebsd.org ---
A commit references this bug:
Author: glebius
Date: Wed Oct 3 17:40:05 UTC 2018
New revision: 339170
URL: https://svnweb.freebsd.org/changeset/base/339170
Log:
In PR 227259, a user is reporting that they have code which is using
shutdown() to wakeup another thread blocked on a stream listen socket.
This code is failing, while it used to work on FreeBSD 10 and still
works on Linux.
It seems reasonable to add another exception to support something users are
actually doing, which used to work on FreeBSD 10, and still works on Linux.
And, it seems like it should be acceptable to POSIX, as we still return
ENOTCONN.
This patch is different to what had been committed to stable/11, since
code around listening sockets is different. Patch in D15019 is written
by jtl@, slightly modified by me.
PR: 227259
Obtained from: jtl
Approved by: re (kib)
Differential Revision: D15019
Changes:
head/sys/kern/uipc_socket.c
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-net
mailing list