[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags
Justin Cappos
report at bugs.python.org
Sun Nov 21 21:40:35 CET 2010
Justin Cappos <justincappos at gmail.com> added the comment:
> > 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.
>
>
> Right. But setting the server socket to nonblocking, and then
> expecting the connection socket to also be nonblocking might be.
Okay sure. This is fine. That is why I suggested that if you don't like my patch, one might instead change new Python sockets to inherit the timeout / blocking setting on BSD.
However, I hope we can all agree that having the Python socket object in a different blocking / non-blocking state than the OS socket descriptor is wrong. This is what needs to be fixed.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7995>
_______________________________________
More information about the Python-bugs-list
mailing list