Martin Panter added the comment:
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
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue27614>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com