From: Conrad S. <co...@he...> - 2002-03-19 01:36:45
|
On Mon, 2002-03-18 at 17:03, Shilad Sen wrote: > The latest version of py-xmlrpc has been released. There are many feature > improvements (mostly based on requests), and a few bugfixes. > > This is probably the last releases (outside of a bugfix release) under this > codebase. I have the new codebase ready to go, and will post it as 'unstable' > soon. > > Let me know if you have any questions / comments! Hi Shilad Thanks for the new release, it is appreciated :-) Attached is a patch that I use to define a new method, called parseRequestXML that takes input from a string and parses the XML-RPC call it contains. This method, along with buildResponse enables py-xmlrpc to be used in mod_python in Apache for building a robust and scalable application server. E.g. in the handler function that mod_python uses: def handler(req): pw = req.get_basic_auth_pw() user = req.connection.user data=req.read() decoded=xmlrpc.parseRequestXML(data) # "decoded" now contains the method name [0] and arguments [1] # Call the method, and receive the return values in e.g. retval response=xmlrpc.buildResponse(retval) req.write(response) The patch is against 0.8.7, but applies cleanly against 0.8.8 as well. Using a stock Apache/mod_python from Mandrake 8.1 on an PIII/933 the server can handle about 200 calls/s with each call serviced by a different process. This setup is very stable and provides crash protection for serving different clients. Anyway, I would like to contribute the patch to py-xmlrpc if this seems useful. Cheers! Conrad |