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

Martin v. Löwis report at bugs.python.org
Wed Jan 5 20:00:05 CET 2011


Martin v. Löwis <martin at v.loewis.de> added the comment:

> Ok, here is a patch which prefers the default timeout (if set) over fixing of inherited flags. Tested under Linux, Windows, OpenSolaris.

This patch looks fine to me. Please also update the accept documentation
to explain the situation (new socket gets
default timeout if given, else is blocking if server socket
has timeout, else inherits flags according to system defaults).

I then think that gettimeout is also incorrect: it really
fetch the O_NONBLOCK flag from the socket.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7995>
_______________________________________


More information about the Python-bugs-list mailing list