Re: intervall of about 1 second for xmlrpc calls?

2010-05-21 Thread Adam Tauno Williams
On Fri, 2010-05-21 at 02:10 -0700, rav wrote: > I had similar problem with SimpleXMLRPCServer > Create the request handler class > class ExtendedXMLRPCRequestHandler(SimpleXMLRPCRequestHandler): > # originally this one was slowing down my server A LOT due to DNS > settings!!! > def log_requ

Re: intervall of about 1 second for xmlrpc calls?

2010-05-21 Thread rav
I had similar problem with SimpleXMLRPCServer Create the request handler class class ExtendedXMLRPCRequestHandler(SimpleXMLRPCRequestHandler): # originally this one was slowing down my server A LOT due to DNS settings!!! def log_request(self, *args): pass and put it in your Simple

Re: intervall of about 1 second for xmlrpc calls?

2010-05-20 Thread Adam Tauno Williams
On Thu, 2010-05-20 at 22:46 +0200, News123 wrote: > Hi Adam, > Adam Tauno Williams wrote: > > On Thu, 2010-05-20 at 03:40 -0700, Thomas Lehmann wrote: > >>> What's wrong? > >> Obviously there's a problem with "localhost". When using the IP of my > >> machine everything is working fast. > I think yo

Re: intervall of about 1 second for xmlrpc calls?

2010-05-20 Thread News123
Hi Adam, Adam Tauno Williams wrote: > On Thu, 2010-05-20 at 03:40 -0700, Thomas Lehmann wrote: >>> What's wrong? >> Obviously there's a problem with "localhost". When using the IP of my >> machine everything is working fast. I think you're right. localhost with IPV6 was also a problem for me.

Re: intervall of about 1 second for xmlrpc calls?

2010-05-20 Thread Adam Tauno Williams
On Thu, 2010-05-20 at 03:40 -0700, Thomas Lehmann wrote: > > What's wrong? > Obviously there's a problem with "localhost". When using the IP of my > machine everything is working fast. You box may first be trying to connect to ::1 (ipv6) and when that fails it falls back to 127.0.0.1. Make sure I

Re: intervall of about 1 second for xmlrpc calls?

2010-05-20 Thread Thomas Lehmann
> What's wrong? > Obviously there's a problem with "localhost". When using the IP of my machine everything is working fast. -- http://mail.python.org/mailman/listinfo/python-list

intervall of about 1 second for xmlrpc calls?

2010-05-20 Thread Thomas Lehmann
Hi, I'm wondering about the behavior. Running this example - it looks like - that each rpc call is triggered in a visible interval (about one second). What's wrong? Thomas APPENDIX: import threading from xmlrpc.server import SimpleXMLRPCServer import xmlrpc.client class MyServer(threading.Th