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


Groups > comp.lang.python > #3191

Re: about soaplib demo's time latency

References <bf5cd550-a417-419d-932a-4458b1f8a1d6@hd10g2000vbb.googlegroups.com>
Date 2011-04-14 19:18 +1000
Subject Re: about soaplib demo's time latency
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.354.1302772742.9059.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Apr 14, 2011 at 6:43 PM, Stephen.Wu <54wutong@gmail.com> wrote:
> I just follow the instructions below - http://soaplib.github.com/soaplib/2_0/pages/helloworld.html
> to establish a soap server. After starting the server, everytime I run
> the client script, I fetch the response nearly 20 seconds afterward.
> Why this happen?
> I just want the server send response asap then the client will show
> the result to me immediately.
>
> please give some hints. thanks

Not sure if it's what you're seeing, but you might have an issue with
reverse DNS. When the client connects, the server tries to look up its
PTR record for its log. You can speed this up by either having such a
record, or having an authoritative DNS server that returns an
immediate failure; either option is fairly easy if you run BIND, but
you might be able to do it with your hosts file (/etc/hosts or
c:\windows\system32\drivers\etc\hosts) instead - just put in an entry
for your client computer and some hostname.

Hope that helps!

Chris Angelico

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


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