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!newsfeed6.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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'linux,': 0.05; 'socket': 0.05; 'closed.': 0.09; 'sep': 0.09; 'err,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:threads': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'received:209.85.214.174': 0.21; 'least': 0.25; 'header:In-Reply- To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'seconds': 0.30; 'to:addr:python-list': 0.33; '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; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'takes': 0.39; 'header:Received:5': 0.40; 'close': 0.63; 'experience.': 0.65; 'subject:,': 0.81; 'promptly.': 0.84 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:to :content-type; bh=gDX4xMtFBu9W237/g3aX9zfDLYG8zCzVvsXom8P7TEg=; b=lsVhRLwI8Q+W1XkARZu0b5tVyMl49u0fnNMaxguzPF4CVAB31YKRyEUjTA4W4JXudk 78SwmmQMfQQaJgGOJ8Cr67WScrsIuK1AHieg2W6pcTtN6ujaBuWDlu5hfEmBK9hErCZ7 lBrU92YeUgfARwMusuvDhxwbdZtOhOuAhPNrudWJXrC3UPphinFlQ6yx6P9o0awfhb1U KrENFaIrnQH1Xu18EX/fL7BuPOJTclqtm4BOPgOGuim9cTmaJ20x0gvmGqnmIs++aX3U 0TZgpJa4Wtaw8+9bUuBYEbivqGIsFPGfYivg/qfn8Wr+wcHAQ2NF6cMBtmcRHv1BcAa5 gU6w== MIME-Version: 1.0 In-Reply-To: <4baa457c-3408-46dd-a98b-ae7e097ac5e5@googlegroups.com> References: <4d1ffb61-38b6-42fb-9426-c1c7cb7038a0@googlegroups.com> <4baa457c-3408-46dd-a98b-ae7e097ac5e5@googlegroups.com> Date: Wed, 5 Sep 2012 23:04:22 +1000 Subject: Re: sockets,threads and interupts From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346850266 news.xs4all.nl 6908 [2001:888:2000:d::a6]:53957 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28489 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. ChrisA