Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'returned.': 0.07; 'errno': 0.09; 'loop.': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'python': 0.10; 'causing': 0.13; 'thu,': 0.15; '>to': 0.16; 'control-c': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'simpson': 0.16; 'subject:handling': 0.16; 'laura': 0.18; '2015': 0.20; 'resumes': 0.22; 'subject:problem': 0.22; 'code,': 0.23; 'received:se': 0.29; 'probably': 0.31; 'post': 0.31; 'continuing': 0.32; 'problem': 0.33; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'whatever': 0.39; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; 'cameron': 0.66; '+1000,': 0.84; 'header:In-reply-to:1': 0.84 To: python-list@python.org From: Laura Creighton Subject: Re: ConnectionError handling problem In-reply-to: <20150930213059.GA6225@cskk.homeip.net> References: <20150930213059.GA6225@cskk.homeip.net> Comments: In-reply-to Cameron Simpson message dated "Thu, 01 Oct 2015 07:30:59 +1000." MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <708.1443650162.1@fido> Content-Transfer-Encoding: quoted-printable Date: Wed, 30 Sep 2015 23:56:02 +0200 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Wed, 30 Sep 2015 23:56:04 +0200 (CEST) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1443650168 news.xs4all.nl 23845 [2001:888:2000:d::a6]:51557 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:97259 In a message of Thu, 01 Oct 2015 07:30:59 +1000, Cameron Simpson writes: >Most likely the Ctrl-C interrupts whatever system call is hanging, causin= g it = >to return (failed, probably with errno EINTR). And the python program res= umes = >because the OS system call has returned. > >Cheers, >Cameron Simpson Shiva Upreti needs to post the current code, but last time I read it the problem was that control-C is a KeyboardInterrupt, which the program was catching, and then continuing the loop. Laura