468,272 Members | 2,083 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,272 developers. It's quick & easy.

xmlrpc.server.work() does not seem to handle multiple requests

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

Jul 18 '05 #1
2 1766
Unfortunately no because this is a single threaded http server. It's
great for testing stuff out, but it doesn't scale unless you make it
scale. I am assuming you could use the Zope application server to
scale your code.

Jul 18 '05 #2
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/Coo...n/Recipe/81549

Hope this helps.

Adonis
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Juan Carlos CORUÑA | last post: by
3 posts views Thread by David Hirschfield | last post: by
reply views Thread by David Hirschfield | last post: by
9 posts views Thread by jazzslider | last post: by
7 posts views Thread by viscanti | last post: by
6 posts views Thread by xkenneth | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.