[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags

Antoine Pitrou report at bugs.python.org
Sun Nov 21 21:24:39 CET 2010

Antoine Pitrou <pitrou at free.fr> added the comment:

Le dimanche 21 novembre 2010 à 20:16 +0000, Martin v. Löwis a écrit :
> > We are talking about the timeout feature, which is a Python feature, not
> > a BSD (or Linux) sockets feature. It should work properly, even if that
> > means adding some boilerplate around system calls.
> I agree that the semantics of the socket timeout API is confusing (and I
> wish it had not been added in the first place). However, making it work
> "better" must not cause breakage to other legitimate applications.

Well, I don't think setting a timeout on a listening socket and then
expecting the socket received through accept() to be non-blocking (but
only on BSD) is a legitimate application.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list