[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

Vetoshkin Nikita report at bugs.python.org
Thu Oct 27 18:43:56 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/issue7523>
_______________________________________


More information about the Python-bugs-list mailing list