Message271316
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 |
|
Date |
User |
Action |
Args |
2016-07-26 01:28:53 | martin.panter | set | recipients:
+ martin.panter, r.david.murray, earl.chew |
2016-07-26 01:28:53 | martin.panter | set | messageid: <1469496533.32.0.423032227577.issue27614@psf.upfronthosting.co.za> |
2016-07-26 01:28:53 | martin.panter | link | issue27614 messages |
2016-07-26 01:28:52 | martin.panter | create | |
|