how to stop RPC::XML::Server blocking

2006-11-13 Thread Robin Sheat
Hi, I have a small XML-RPC server I wrote using the RPC::XML::Server module, 
however I found that if a single task given to it takes some time, then it 
prevents any more requests from happening. I'd like to have each task started 
in its own thread (preferably with the ability to specify an upper limit, 
after which it blocks to stop it getting hammered with thread creation).

Is there a nice way to do this without writing my own RPC::XML::Server 
replacement?

Cheers, Robin.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: how to stop RPC::XML::Server blocking

2006-11-14 Thread Todd W

"Robin Sheat" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi, I have a small XML-RPC server I wrote using the RPC::XML::Server 
> module,
> however I found that if a single task given to it takes some time, then it
> prevents any more requests from happening. I'd like to have each task 
> started
> in its own thread (preferably with the ability to specify an upper limit,
> after which it blocks to stop it getting hammered with thread creation).
>
> Is there a nice way to do this without writing my own RPC::XML::Server
> replacement?

Sure. Just run your server in a mod_perl enabled apache:

http://search.cpan.org/~rjray/RPC-XML-0.59/lib/Apache/RPC/Server.pm

Todd W.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]