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 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 <1413670530.32.0.846573572078.issue20155@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
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: <1413670530.32.0.846573572078.issue20155@psf.upfronthosting.co.za>
2014-10-18 22:15:30terry.reedylinkissue20155 messages
2014-10-18 22:15:30terry.reedycreate