Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.101 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.83; '*S*': 0.03; 'socket': 0.07; 'connect,': 0.09; 'happens.': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "skip:' 10": 0.31; 'but': 0.35; 'received:google.com': 0.35; 'pm,': 0.38; 'how': 0.40; 'new': 0.61; "you'll": 0.62; 'determine': 0.67; 'production': 0.68; 'frank': 0.68; 'connection.': 0.74; 'right!': 0.84; 'convenience,': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=sIHQVsiM3eEYy/y0Srq1TRewJfi2NGdpa0VnwxLA73k=; b=pC94vQcg4jvQxdFjW5eTKVOrcB4aS7XqdfTFHI3HTU145mj2QIM3jKk9OaYkj3YAGu IqgB/w1S3IpS+BqojTmwCia268ZiwFJgi8ksgGqDGvjvZHeK3WW+m0O9p/krokay9ERS ZvX5T7BOq26w1AwX8vk9r1hZvVkVshsC2cTfCLOi9nFEy1cvit5iZxPeLY6MzEHTgvW9 oo8jKDN9SIt5PuNK7QpCZjR4tmgv+PeIf4IOXhhQFqpJBi0yV9OcIT+/TPTGQ6nYbZsM w/2429pfqrEmsLiiE9C09GiW7Wmmiog17FuSBeJJmUFde5/Os07/3Om4SxQgSM/eDzcZ iWGA== MIME-Version: 1.0 X-Received: by 10.69.8.225 with SMTP id dn1mr18996858pbd.46.1397128756457; Thu, 10 Apr 2014 04:19:16 -0700 (PDT) In-Reply-To: References: <87d2gt4td2.fsf@elektro.pacujo.net> <7xha651yx2.fsf@ruckus.brouhaha.com> <877g70wg8p.fsf@elektro.pacujo.net> Date: Thu, 10 Apr 2014 21:19:16 +1000 Subject: Re: threading From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1397128759 news.xs4all.nl 2919 [2001:888:2000:d::a6]:55676 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:70030 On Thu, Apr 10, 2014 at 9:10 PM, Frank Millman wrote: > You seem to be suggesting that I set the socket to 'non-blocking', use > select() to determine when a client is trying to connect, and then call > 'accept' on it to create a new connection. Right! That's about how it goes. Of course, for production work you'll want to wrap all that up for convenience, but fundamentally, that is what happens. ChrisA