Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.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.038 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; '(although': 0.05; 'instance': 0.05; 'initialize': 0.07; 'pm,': 0.11; 'wrote:': 0.14; 'lasting': 0.16; 'localhost': 0.16; 'subject:soaplib': 0.16; 'header:In-Reply-To:1': 0.22; 'thu,': 0.22; 'received:209.85.214.174': 0.23; 'received:mail- iw0-f174.google.com': 0.23; 'drag': 0.25; 'chris': 0.27; 'message- id:@mail.gmail.com': 0.28; 'thanks': 0.29; 'server': 0.29; 'probably': 0.30; 'named': 0.30; 'logic': 0.31; 'to:addr:python- list': 0.32; 'there': 0.35; 'file': 0.35; 'dns': 0.35; 'like:': 0.35; 'slow': 0.35; 'possibility': 0.36; 'should': 0.37; 'received:209.85': 0.37; 'run': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'received:209.85.214': 0.39; 'set': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'how': 0.39; '8bit%:8': 0.39; 'would': 0.40; "it's": 0.40; 'header:Received:5': 0.40; '2011': 0.62; 'subject:about': 0.66; 'url:0': 0.69; 'url:ip addr': 0.72; '11:30': 0.84; '127.0.0.1': 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:content-transfer-encoding; bh=0UI5aiKXrZFblsGgvlTkBQi3iMVfOXhEVuzYsgOY9iY=; b=cemiTyabaqS/5MxUZANpvuUgNkCnKpaXXGmNVQU1AT11/9TH3cSaxxmOfCkxs/XYPy RppfjtHFIgKerA5FOgxhObTTUillqtUaknVpeEuXfBEbvwPOtu+Haw9tvtP0IdYprGzX iLdjOt8nK5KpjGFZ5URf2ggRqMM87IgSlSEJ8= 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:content-transfer-encoding; b=T4sDExBqEjM/8Auzh2dOFEIYXKiMO6C1xZWiGjj7hXjyYE6uTjaF7XOLCod++m5c+K b9mwFKBn4feTgps/om0f0QuGagI6jT7xxvquHo5cKGDzyOuJEqYNrjF4Chkt8RZabyDA NfxESV5+zzu9SI8Js6kYvIv43JhuNYK0aWkbo= MIME-Version: 1.0 In-Reply-To: <74ed4581-6b56-4743-9708-978f653fb9d7@n2g2000prj.googlegroups.com> References: <74ed4581-6b56-4743-9708-978f653fb9d7@n2g2000prj.googlegroups.com> Date: Thu, 14 Apr 2011 23:39:13 +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 Content-Transfer-Encoding: quoted-printable 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: 21 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302788357 news.xs4all.nl 32470 [::ffff:82.94.164.166]:35022 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3196 On Thu, Apr 14, 2011 at 11:30 PM, Stephen.Wu <54wutong@gmail.com> wrote: > Thanks Chris. > I recheck the logic line by line and I find it is this sentence drag > speed down : =A0hello_client =3D Client('http://localhost:7789/?wsdl'). > To initialize a suds.client.Client instance need that long lasting 20 > seconds? > On your suggestion, if I just want to run the server localhost, how > should I set up the local \etc\hosts file? It's probably already there for localhost; check the file I named and see if there's a line looking like: 127.0.0.1 localhost If there is, you should be able to get reverse DNS for 127.0.0.1. The other possibility there is that it's the _forward_ DNS that's slow (although I don't know why it would be). Try the IP instead: hello_client =3D Client('http://127.0.0.1:7789/?wsdl') Chris Angelico