[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

Senthil Kumaran report at bugs.python.org
Sun Apr 29 07:26:27 CEST 2012


Senthil Kumaran <senthil at uthcode.com> added the comment:

The original change was introduced in this issue401197 which seems to use  fqdn at *all appropriate places*. In this case, after about a decade, it was realized that using fdqn for client connection may not be appropriate when hostname is not set.

In 3.3, this is fixed by making address_string return client ip instead of client hostname.

In 2.7 and 3.2, I would like to see it fixed wherein, inside the log_message call, the address_string is not called instead direct client address is used. In this manner, we are not changing any return values of public api (address_string), but we are effectively eliminating the delay cased by fqdn looking while logging to sys.stderr.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6085>
_______________________________________


More information about the Python-bugs-list mailing list