Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
fb5aebc1
Commit
fb5aebc1
authored
Apr 29, 2012
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue6085 - Remove the delay caused by fqdn lookup while logging in BaseHTTPRequestHandler
parent
11427730
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Doc/library/basehttpserver.rst
Doc/library/basehttpserver.rst
+1
-1
Lib/BaseHTTPServer.py
Lib/BaseHTTPServer.py
+3
-3
No files found.
Doc/library/basehttpserver.rst
View file @
fb5aebc1
...
...
@@ -240,7 +240,7 @@ to a handler. Code to create and run the server looks like this::
to create custom error logging mechanisms. The *format* argument is a
standard printf-style format string, where the additional arguments to
:meth:`log_message` are applied as inputs to the formatting. The client
address and current date and time are prefixed to every message logged.
ip
address and current date and time are prefixed to every message logged.
.. method:: version_string()
...
...
Lib/BaseHTTPServer.py
View file @
fb5aebc1
...
...
@@ -447,13 +447,13 @@ class BaseHTTPRequestHandler(SocketServer.StreamRequestHandler):
specified as subsequent arguments (it's just like
printf!).
The client
host and current date/time are prefixed to
every
message.
The client
ip address and current date/time are prefixed to every
message.
"""
sys
.
stderr
.
write
(
"%s - - [%s] %s
\
n
"
%
(
self
.
address_string
()
,
(
self
.
client_address
[
0
]
,
self
.
log_date_time_string
(),
format
%
args
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment