Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!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.032 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'down,': 0.09; 'initialized': 0.09; 'nicely': 0.09; 'top-level': 0.09; 'am,': 0.14; 'wrote:': 0.14; 'assigns': 0.16; 'innocuous': 0.16; 'install,': 0.16; 'localhost': 0.16; 'subject:soaplib': 0.16; 'trivia': 0.16; 'seems': 0.21; 'header:In-Reply-To:1': 0.22; 'received:209.85.214.174': 0.23; 'received:mail- iw0-f174.google.com': 0.23; 'responses.': 0.23; 'works.': 0.23; 'chris': 0.27; 'message-id:@mail.gmail.com': 0.28; 'server': 0.29; 'fri,': 0.29; 'nobody': 0.29; 'confusion': 0.31; 'to:addr:python- list': 0.32; 'configured': 0.33; 'relatively': 0.33; 'generally': 0.33; "isn't": 0.34; 'got': 0.34; 'that,': 0.35; 'dns': 0.35; 'else': 0.37; 'machine': 0.37; 'should': 0.37; 'received:209.85': 0.37; 'exactly': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'software': 0.38; 'anything': 0.38; 'received:209.85.214': 0.39; 'set': 0.39; 'to:addr:python.org': 0.39; 'comes': 0.39; 'received:209': 0.39; 'would': 0.40; "it's": 0.40; 'header:Received:5': 0.40; 'domain': 0.40; 'procedures': 0.60; 'taking': 0.61; '2011': 0.62; 'ever': 0.65; 'cause': 0.65; 'subject:about': 0.66; '11:14': 0.84; 'should,': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Kcdh469c/1R2DzkRQSbJ1f7U8n/a2Zc+DEXdyvQKnts=; b=SF5chLrt00mKSl6dd8BKXFg2BBLcXRIL6ru75pv10cK7ax9Ffs/L8f23GYty4ttuSw LzHDl9/hb3gZzANa1nBAWg0EOmNLgoLDcaN38kO2whLgm2BuYrbFtS+tZSHDrwP7Mgql L3c1UrxTkn26Y7OBHXooQJrwx/I7pQ2Q0bR8o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=XY30jkrgLHiOeMDyH+2zqVXnXJ3cgGrd1yPhfsQhHvPQWjsjQ2pqw1KSAzS1LVHKPd psE127G/bXAiAN3t76sltfNAsHAYeOitqGdoFoQjH0sJzAjYPnudKtaV9zJE7tohepRq tO/I1GKIEJ8p5MPTgSNxyLjwgjtymcueOuXyc= MIME-Version: 1.0 In-Reply-To: <857f83f9-20a6-4708-a189-4a0dd4e99f5b@e21g2000vbz.googlegroups.com> References: <74ed4581-6b56-4743-9708-978f653fb9d7@n2g2000prj.googlegroups.com> <857f83f9-20a6-4708-a189-4a0dd4e99f5b@e21g2000vbz.googlegroups.com> Date: Fri, 15 Apr 2011 12:01:53 +1000 Subject: Re: about soaplib demo's time latency 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.12 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: 15 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302832916 news.xs4all.nl 81479 [::ffff:82.94.164.166]:43808 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3228 On Fri, Apr 15, 2011 at 11:14 AM, Stephen.Wu <54wutong@gmail.com> wrote: > It works. Seems the DNS server will exchange localhost and 127.0.0.1, > taking nearly 15 seconds. Anyway, I got to know the exactly reason let > the initialized procedures down, which is the most important thing. Generally BIND, on install, is configured to be authoritative for the .localhost domain (little-known trivia fact: localhost isn't a machine name, it's a top-level domain - on par with .com or .uk), which should mean you get fast responses. May want to check your DNS server's config. I don't know if other DNS software comes nicely preconfigured like that, but it should, since nobody ever assigns localhost to be anything else (imagine the confusion THAT would cause - even if you set it to something relatively innocuous like 127.0.0.2). Chris Angelico