This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author othererik
Recipients othererik
Date 2010-04-23.12:38:02
SpamBayes Score 5.98065e-09
Marked as misclassified No
Message-id <1272026284.3.0.0989904198918.issue8506@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-04-23 12:38:04othereriksetrecipients: + othererik
2010-04-23 12:38:04othereriksetmessageid: <1272026284.3.0.0989904198918.issue8506@psf.upfronthosting.co.za>
2010-04-23 12:38:03othereriklinkissue8506 messages
2010-04-23 12:38:02othererikcreate