Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'linux,': 0.05; 'socket': 0.05; 'closed.': 0.09; 'sep': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'err,': 0.16; 'subject:threads': 0.16; 'wed,': 0.16; 'wrote:': 0.17; "shouldn't": 0.17; 'wednesday,': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'least': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'received:209.85.212': 0.28; 'chris': 0.28; 'seconds': 0.30; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'should': 0.36; 'resources': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'takes': 0.39; 'close': 0.63; 'experience.': 0.65; 'guaranteed': 0.76; 'subject:,': 0.81; 'promptly.': 0.84; 'received:209.85.212.56': 0.91 Newsgroups: comp.lang.python Date: Wed, 5 Sep 2012 08:59:05 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=122.167.254.242; posting-account=uPFZNQoAAAAm9w7z13q1SjWNKNjztdcD References: <4d1ffb61-38b6-42fb-9426-c1c7cb7038a0@googlegroups.com> <4baa457c-3408-46dd-a98b-ae7e097ac5e5@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 122.167.254.242 MIME-Version: 1.0 Subject: Re: sockets,threads and interupts From: Ramchandra Apte To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org 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: , Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346860748 news.xs4all.nl 6952 [2001:888:2000:d::a6]:55730 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28512 On Wednesday, 5 September 2012 18:34:32 UTC+5:30, Chris Angelico wrote: > On Wed, Sep 5, 2012 at 10:54 PM, Ramchandra Apte wrote: > > > At least on Linux, if you kill a process using sockets, it takes about 10 seconds for socket to be closed. A program should try to close all resources. OS'es may take a long time to close a unclosed socket automatically. > > > > Err, that's not my experience. When a process terminates, its > > resources are released promptly. It is not guaranteed so a program shouldn't presume. > > > > ChrisA