Interesting socket behavior

Christian Calderon calderon.christian760 at gmail.com
Mon Oct 6 18:58:03 EDT 2014


I noticed that if I make a listening socket using SOCK_STREAM |
SOCK_NONBLOCK, that the sockets I get after calling listener.accept() don't
have the O_NONBLOCK flag set, but checking the result of gettimeout() on
the same sockets gives me 0.0, which means they are non blocking. Why is
this the case?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20141006/7bc38d2f/attachment.html>


More information about the Python-list mailing list