Persistent XMLRPC Connection

Chris Spencer usenet.20.evilspam at spamgourmet.com
Sun Aug 14 16:57:29 EDT 2005


I noticed the SimpleXMLRPCServer/ServerProxy creates a new socket for 
remote procedure call. I've written a simple IP based authentication 
scheme for the Server, and I'd like to include the port in the 
authentication, which is currently not possible since the port keeps 
changing.

I've looked at the code in SimpleXMLRPCServer.py, xmlrpclib.py, 
SocketServer.py, and BaseHTTPServer.py, but it's a little overwhelming. 
How difficult would it be to reuse connections so that only one port per 
persistent client connection is used?

Sincerely,
Chris



More information about the Python-list mailing list