Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78792 > unrolled thread

Interesting socket behavior

Started byChristian Calderon <calderon.christian760@gmail.com>
First post2014-10-06 15:58 -0700
Last post2014-10-06 15:58 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Interesting socket behavior Christian Calderon <calderon.christian760@gmail.com> - 2014-10-06 15:58 -0700

#78792 — Interesting socket behavior

FromChristian Calderon <calderon.christian760@gmail.com>
Date2014-10-06 15:58 -0700
SubjectInteresting socket behavior
Message-ID<mailman.14656.1412668365.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

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?

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web