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 santoso.wijaya
Recipients aerodonkey, santoso.wijaya
Date 2010-04-22.00:03:57
SpamBayes Score 0.03587253
Marked as misclassified No
Message-id <>
There is a simple workaround to bypass the hostname resolution mechanism, so that the server can respond faster.

# This is a hack to patch slow socket.getfqdn calls that
# BaseHTTPServer (and its subclasses) make.
# See:
# See:

import BaseHTTPServer

def _bare_address_string(self):
    host, port = self.client_address[:2]
    return '%s' % host

BaseHTTPServer.BaseHTTPRequestHandler.address_string = \

# End hack.
Date User Action Args
2010-04-22 00:04:00santoso.wijayasetrecipients: + santoso.wijaya, aerodonkey
2010-04-22 00:03:59santoso.wijayasetmessageid: <>
2010-04-22 00:03:57santoso.wijayalinkissue6085 messages
2010-04-22 00:03:57santoso.wijayacreate