Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #3196

Re: about soaplib demo's time latency

References <bf5cd550-a417-419d-932a-4458b1f8a1d6@hd10g2000vbb.googlegroups.com> <mailman.354.1302772742.9059.python-list@python.org> <74ed4581-6b56-4743-9708-978f653fb9d7@n2g2000prj.googlegroups.com>
Date 2011-04-14 23:39 +1000
Subject Re: about soaplib demo's time latency
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.358.1302788357.9059.python-list@python.org> (permalink)

Show all headers | View raw


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 :  hello_client = 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 = Client('http://127.0.0.1:7789/?wsdl')

Chris Angelico

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

about soaplib demo's time latency "Stephen.Wu" <54wutong@gmail.com> - 2011-04-14 01:43 -0700
  Re: about soaplib demo's time latency Chris Angelico <rosuav@gmail.com> - 2011-04-14 19:18 +1000
    Re: about soaplib demo's time latency "Stephen.Wu" <54wutong@gmail.com> - 2011-04-14 06:30 -0700
      Re: about soaplib demo's time latency Chris Angelico <rosuav@gmail.com> - 2011-04-14 23:39 +1000
        Re: about soaplib demo's time latency "Stephen.Wu" <54wutong@gmail.com> - 2011-04-14 18:14 -0700
          Re: about soaplib demo's time latency Chris Angelico <rosuav@gmail.com> - 2011-04-15 12:01 +1000

csiph-web