[issue10115] Support accept4() for atomic setting of flags at socket creation

Vetoshkin Nikita report at bugs.python.org
Thu Oct 27 18:45:10 CEST 2011


Vetoshkin Nikita <nikita.vetoshkin at gmail.com> added the comment:

Started implementing accept4() socket method and stuck on socket object's timeout attribute. What value should we assign to sock->sock_timeout if SOCK_NONBLOCK was specified in accept4() call? And in socket.py should we check as in original accept:
if getdefaulttimeout() is None and self.gettimeout():
   sock.setblocking(True)

----------

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


More information about the Python-bugs-list mailing list