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


Groups > comp.lang.python > #78792

Interesting socket behavior

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <calderon.christian760@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.111
X-Spam-Level *
X-Spam-Evidence '*H*': 0.80; '*S*': 0.02; 'socket': 0.07; 'set,': 0.16; 'sockets': 0.16; 'non': 0.24; 'message-id:@mail.gmail.com': 0.30; 'gives': 0.31; 'checking': 0.33; 'noticed': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'listening': 0.74; 'case?': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=4Rsb5JFLidi6pfMmqyQNZe0A5vf5uUAIkAgeKCNgjEg=; b=RMEnFkeaOTXsijDmo5kjSojNTP7OY4OZn4bYR571Np71KyhN6FzMocAgDJvUmmkNon W9Bb1cuWD/VNhic3jRu4Yiwo/gvyw3l3TUZiKlnehuXu/ojbY04w84tHVnGUJHi4eX9K H7p81HI+W3LyKZmlGm2xQWdDLjnocy0ZZIlKOq39DrD3OSALhiVoDJXrtAmjERHlUNB1 6cwRWJfMGPMoNG9+8G9aRJCfcYZrhuA76yJMeWhqCt+Yi9Ub1yVS8CF0yp0YJSW9p+v9 3r6SHUAyeJgb2AHEq2llFXyJqVwrbU1LxnKKImMFnx74qDVrP2kNhzmYO9KWH0YDKMUG SQ8A==
MIME-Version 1.0
X-Received by 10.236.44.194 with SMTP id n42mr41774245yhb.39.1412636283928; Mon, 06 Oct 2014 15:58:03 -0700 (PDT)
Date Mon, 6 Oct 2014 15:58:03 -0700
Subject Interesting socket behavior
From Christian Calderon <calderon.christian760@gmail.com>
To python-list@python.org
Content-Type multipart/alternative; boundary=20cf3003bd82e687e30504c9038c
X-Mailman-Approved-At Tue, 07 Oct 2014 09:52:44 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.14656.1412668365.18130.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1412668365 news.xs4all.nl 2952 [2001:888:2000:d::a6]:53430
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:78792

Show key headers only | View raw


[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?

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web