Author ubershmekel
Recipients ubershmekel
Date 2012-04-19.17:59:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334858349.45.0.662214350668.issue14622@psf.upfronthosting.co.za>
In-reply-to
Content
This is the line in question: http://hg.python.org/cpython/file/293180d199f2/Lib/http/server.py#l527

I was trying to test out a few html files using "python -m http.server" and it took 4 seconds for each request, it was completely unusable. I had to do hula hoops to find out that it was Python's fault. The function self.address_string is used in every log, meaning every request makes a reverse DNS query before responding. This function failed for every request. Now I know this may be my network's fault but that doesn't mean the server has to die with it. I think the better solution would be to just print out the ip address like other popular servers do. There's no need to be fancy with server names in the log of our toy server, especially when it may come at such a high price.
History
Date User Action Args
2012-04-19 17:59:09ubershmekelsetrecipients: + ubershmekel
2012-04-19 17:59:09ubershmekelsetmessageid: <1334858349.45.0.662214350668.issue14622@psf.upfronthosting.co.za>
2012-04-19 17:59:08ubershmekellinkissue14622 messages
2012-04-19 17:59:08ubershmekelcreate