Author terry.reedy
Recipients Claudiu.Popa, ezio.melotti, fwierzbicki, jeff.allen, orsenthil, python-dev, r.david.murray, terry.reedy
Date 2014-10-18.22:15:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I copied the example profile code at the top and bottom of test_get and nearly all (7.155 / 7.210) of the time is in _socket.socket.connect, which takes .5 sec per call.
   14    7.155    0.511    7.155    0.511 {method 'connect' of _socket.socket' objects}
I am guessing that socket, and thence _socket, is imported in HTTPServer. I tested whether this diff in class TestServerThread is responsible
-         self.server = HTTPServer(('', 0), self.request_handler)
+         self.server = HTTPServer(('localhost', 0), self.request_handler)
but it is not.  Anyone else have other ideas?
Date User Action Args
2014-10-18 22:15:30terry.reedysetrecipients: + terry.reedy, orsenthil, fwierzbicki, ezio.melotti, r.david.murray, Claudiu.Popa, python-dev, jeff.allen
2014-10-18 22:15:30terry.reedysetmessageid: <>
2014-10-18 22:15:30terry.reedylinkissue20155 messages
2014-10-18 22:15:30terry.reedycreate