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: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 --20cf3003bd82e687e30504c9038c Content-Type: text/plain; charset=UTF-8 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? --20cf3003bd82e687e30504c9038c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I noticed that if I make a listening socket using SOCK_STR= EAM | SOCK_NONBLOCK, that the sockets I get after calling listener.accept()= don't have the O_NONBLOCK flag set, but checking the result of gettime= out() on the same sockets gives me 0.0, which means they are non blocking. = Why is this the case?
--20cf3003bd82e687e30504c9038c--