[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags
Kristján Valur Jónsson
report at bugs.python.org
Wed Mar 30 20:30:34 CEST 2011
Kristján Valur Jónsson <kristjan at ccpgames.com> added the comment:
Antoine, absolument. Please see attached file bug.py
As for a different patch, we should agree what behaviour should be expected. I don't think it is possible to rely on some platform specific behaviour. This is because it is in general not possible to query the blokcking state of a socket. Instead we should simply define it for python, and in accordance to established tradition, namely that defaulttimeout prevails.
Btw, defaulttimeout(None) doesn't mean that that there is no default, it means that the default is "blocking."
Added file: http://bugs.python.org/file21478/bug.py
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list