SimpleXMLRPCServer Releasing Ports
Pat Knight
nospam at eurologic.com
Wed Oct 9 05:30:38 EDT 2002
In Python 2.2 (I haven't checked earlier releases), the base class for
SimpleXMLRPCServer, SocketServer.TCPServer has an attribute
allow_reuse_address. If you set this to 1 or anything else evaluating true
before invoking serve_forever(), the correct socket option SO_REUSEADDR is set
for you. You don't need to write any code yourself.
--
Cheers,
Pat Tel: 0117 930 9621 (Intl: +44-117-930-9621).
More information about the Python-list
mailing list