xmlrpclib RPC calls sometimes hang
Simrod Furman
sfurman at nameconnector.com
Thu Feb 14 17:00:35 EST 2002
I'm writing a xmlrpclib client in Python 2.1 using xmlrpclib 0.9.9 on
Windows NT. I'm having a problem however, since the RPC call through
xmlrpclib is a blocking call, if there are any problems during the function
call such as a dropped modem or a problem on the XML-RPC server, the RPC
call wedges. As far as I can tell, xmlrpclib just hangs inside the RPC call.
I'm also using SSL from the M2Crypto library as a plug in the 'transport'
argument to xmlrpc.Server()
I've heard the suggestion to use timeout sockets from here:
http://aspn.activestate.com/ASPN/Mail/Message/python-announce/935327
as a way to add this functionality in, but I think it would require me to
modify xmlrpclib.
Question 1: Is there a way to get xmlrpclib to timeout and throw an
exception after a specified amount of time?
Question 2: Has anyone tried xmlrpclib, SSL, and timeout sockets in Python
2.2?
--Simrod
Simrod Furman
Parlance Corporation, home of the NameConnector Service
http://www.nameconnector.com
More information about the Python-list
mailing list