xmlrpc.server.work() does not seem to handle multiple requests
Adonis
adonisv at DELETETHISTEXTearthlink.net
Fri Feb 18 23:50:27 EST 2005
john14 wrote:
> Hi,
>
> I have an xmlrpc server. I using the python package
> xmlrpc. Here is what I am doing:
>
> s = xmlrpc.server()
> s.addMethods(method_hash)
> s.bindAndListen(PORT)
> while 1:
> try:
> s.work()
> except:
> e = sys.exc_info()
>
> The problem is that when I send multiple requests they are queued and
> processed one after the other. Is there some other method that will allow
> me to process multiple request at the same time?
>
> Thank You
>
Check out this snippet look at the end for user comments to get a
multi-threaded or forking version.
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81549
Hope this helps.
Adonis
More information about the Python-list
mailing list