Re: xmlrpclib timeouts

From: Graham Dumpleton (grahamd_at_dscpl.com.au)
Date: 03/03/04


Date: 2 Mar 2004 21:53:48 -0800

p2esp <p2esp@yahoo.com> wrote in message news:<mailman.19.1078223070.12614.python-list@python.org>...
> Hello,
>
> I'm using the xmlrpclib module to contact an XMLRPC
> server that takes a long time to send results back. My
> client timeouts.
>
> The question is whether there is a way to have an
> xmlrpclib client that never timeouts. I have been
> searching for some code examples on how to do that,
> but I could not find any in the xmlrpclib
> documentation.
>
> Thanks for any hints.

Hmm, I always thought that the XML-RPC client in the xmlrpclib
module was written already to do exactly that. Ie., it will block
until it gets a response. There is no timeout functionality within
it.

Is the server you are talking to within your own network, or are you
going through some sort of HTTP proxy either explicitly or
implicitly, or even some sort of router equipment that does special
things with HTTP requests. HTTP proxies often have timeouts
such that if a request takes too long to get back a response, it
will drop the connection. In other words, the problem may not be
with the XML-RPC client but some part of the intermediate network.

Also, what is the XML-RPC server written in? Could it perhaps be
dropping the connection if the server side code takes too long?



Relevant Pages

  • Newbie to XML-RPC: looking for advice
    ... The server is using the twisted.web.xmlrpc.XMLRPC class to handle connections and run requests. ... Clients are just using xmlrpclib.ServerProxy to run remote method calls. ... I have a few questions about the performance of xmlrpc in general, and specifically about increasing the speed with which remote methods return their results to the client. ... It looks like xmlrpclib uses xml.parsers.expat if it's available, but are there faster xml libs? ...
    (comp.lang.python)
  • Re: xmlrpclib timeouts
    ... > I'm using the xmlrpclib module to contact an XMLRPC ... > server that takes a long time to send results back. ... > xmlrpclib client that never timeouts. ... And don't be too quick to skip the memory management ...
    (comp.lang.python)
  • Re: Code critique xmlrpclib
    ... ?It uses dnspython, and xmlrpclib ... propagated back to the client via xmlrpc. ... instances of DNSFunctions (more than likely in a multi-user server) ... For static configuration which you might think globals are good for ...
    (comp.lang.python)
  • Re: IMAP timeouts
    ... >> have changed either on server side or client side. ... I applied the latest windows security updates with the ... your Windowshost after the update causing the timeouts. ...
    (Fedora)
  • Re: xmlrpclib timeouts
    ... >> I'm using the xmlrpclib module to contact an XMLRPC ... >> server that takes a long time to send results back. ... >> xmlrpclib client that never timeouts. ...
    (comp.lang.python)