summaryrefslogtreecommitdiffstats
path: root/Doc/library/http.server.rst
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-04-29 04:51:54 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-04-29 04:51:54 (GMT)
commit1aacba497bfb816d16dc39c09cae3ae17d6d74a2 (patch)
treef8d7bacfeecc341aa72df5546f09df14a5339ed0 /Doc/library/http.server.rst
parent0ce1649674cdd9bc3351f9b98edc1ae3ce3162fa (diff)
downloadcpython-1aacba497bfb816d16dc39c09cae3ae17d6d74a2.zip
cpython-1aacba497bfb816d16dc39c09cae3ae17d6d74a2.tar.gz
cpython-1aacba497bfb816d16dc39c09cae3ae17d6d74a2.tar.bz2
Fix Issue6085 - SimpleHTTPServer address_string to return client ip instead of client hostname
Diffstat (limited to 'Doc/library/http.server.rst')
-rw-r--r--Doc/library/http.server.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst
index 06670b8..6665c93 100644
--- a/Doc/library/http.server.rst
+++ b/Doc/library/http.server.rst
@@ -269,8 +269,11 @@ of which this module provides three different variants:
.. method:: address_string()
- Returns the client address, formatted for logging. A name lookup is
- performed on the client's IP address.
+ Returns the client address.
+
+ .. versionchanged:: 3.3
+ Previously, a name lookup was performed. To avoid name resolution
+ delays, it now always returns the IP address.
.. class:: SimpleHTTPRequestHandler(request, client_address, server)