Re: On shutting down UDP socket [Re: svn commit: r285910 - in head: lib/libc/sys sys/kern sys/sys]

2017-04-10 Thread Maxim Sobolev
JFYI. I've opened a follow-up differential for this potential regression: https://reviews.freebsd.org/D10351 Thanks! -Max On Mon, Apr 10, 2017 at 7:43 AM, Maxim Sobolev wrote: > Hi Guys, I am sorry to bring this old thread up, but I think Ed's > comparison with other OSes here and in the relev

On shutting down UDP socket [Re: svn commit: r285910 - in head: lib/libc/sys sys/kern sys/sys]

2017-04-10 Thread Maxim Sobolev
Hi Guys, I am sorry to bring this old thread up, but I think Ed's comparison with other OSes here and in the relevant differential was not entirely correct. What linux does (tested with 4.4.0) when UDP socket is shut down is actually shutting down receiving end, so any threads that are blocked in r

Re: svn commit: r285910 - in head: lib/libc/sys sys/kern sys/sys

2015-08-09 Thread Ed Schouten
Hi Alexander, 2015-08-09 14:55 GMT+02:00 Alexander Kabaev : > On Sun, 9 Aug 2015 09:37:13 +0200 > It most definitely does work, this is what I have done to get my > network scripts work again. I wonder if there are other means of > restricting raw sockets that can be used to achieve the result > a

Re: svn commit: r285910 - in head: lib/libc/sys sys/kern sys/sys

2015-08-09 Thread Alexander Kabaev
On Sun, 9 Aug 2015 09:37:13 +0200 Ed Schouten wrote: > Hi Alexander, > > 2015-08-08 21:05 GMT+02:00 Alexander Kabaev : > > this commit broke more than just syslogd. rtsol and rtsold both are > > victims of the change as they are trying to shutdown unconnected > > raw sockets to make then 'send-o

Re: svn commit: r285910 - in head: lib/libc/sys sys/kern sys/sys

2015-08-09 Thread Ed Schouten
Hi Alexander, 2015-08-08 21:05 GMT+02:00 Alexander Kabaev : > this commit broke more than just syslogd. rtsol and rtsold both are > victims of the change as they are trying to shutdown unconnected > raw sockets to make then 'send-only' and fail. Good catch! I think that in this case it is safe to

Re: svn commit: r285910 - in head: lib/libc/sys sys/kern sys/sys

2015-08-08 Thread Alexander Kabaev
On Mon, 27 Jul 2015 13:17:58 + (UTC) Ed Schouten wrote: > Author: ed > Date: Mon Jul 27 13:17:57 2015 > New Revision: 285910 > URL: https://svnweb.freebsd.org/changeset/base/285910 > > Log: > Make shutdown() return ENOTCONN as required by POSIX, part deux. > > Summary: > Back in 200

svn commit: r285910 - in head: lib/libc/sys sys/kern sys/sys

2015-07-27 Thread Ed Schouten
Author: ed Date: Mon Jul 27 13:17:57 2015 New Revision: 285910 URL: https://svnweb.freebsd.org/changeset/base/285910 Log: Make shutdown() return ENOTCONN as required by POSIX, part deux. Summary: Back in 2005, maxim@ attempted to fix shutdown() to return ENOTCONN in case the socket was n