[New-bugs-announce] [issue8506] SimpleXMLRPCServer Socket not closed after shutdown call
Erik Schweller
report at bugs.python.org
Fri Apr 23 14:38:04 CEST 2010
New submission from Erik Schweller <othererik at gmail.com>:
Calling shutdown on a SimpleXMLRPCServer will stop the server but does not close the socket, meaning new connections to the same address will fail.
Example:
srv = SimpleXMLRPCServer((ip, port),
logRequests=False, allow_none=True)
srv.serve_forever(poll_interval=2)
srv.shutdown() is made available to the registered class instance.
The current workaround is to delete the socket (or call close() on the socket) after the server is shutdown, (i.e., "del srv.socket") but it seems this should be handled when the server is shutdown.
----------
components: Library (Lib)
messages: 104009
nosy: othererik
severity: normal
status: open
title: SimpleXMLRPCServer Socket not closed after shutdown call
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8506>
_______________________________________
More information about the New-bugs-announce
mailing list