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 martin.panter
Recipients earl.chew, martin.panter, r.david.murray
Date 2016-07-26.01:28:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469496533.32.0.423032227577.issue27614@psf.upfronthosting.co.za>
In-reply-to
Content
The whole point of my suggestion was to bind and set the server socket to listing mode before starting the other thread. The socketserver constructor should do this before returning:

>>> s = DocXMLRPCServer(("localhost", 0))  # Calls bind() and listen()
>>> s.server_address  # Non-zero port has been allocated
('127.0.0.1', 49806)
>>> c = HTTPConnection(*s.server_address)
>>> c.request("OPTIONS", "*")  # No connection refused error
History
Date User Action Args
2016-07-26 01:28:53martin.pantersetrecipients: + martin.panter, r.david.murray, earl.chew
2016-07-26 01:28:53martin.pantersetmessageid: <1469496533.32.0.423032227577.issue27614@psf.upfronthosting.co.za>
2016-07-26 01:28:53martin.panterlinkissue27614 messages
2016-07-26 01:28:52martin.pantercreate