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
1cee216c
Commit
1cee216c
authored
May 29, 2018
by
Géry Ogam
Committed by
Julien Palard
May 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-31639: Change ThreadedHTTPServer to ThreadingHTTPServer class name (GH-7195)
parent
5d97b7bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
Doc/library/http.server.rst
Doc/library/http.server.rst
+2
-2
Lib/http/server.py
Lib/http/server.py
+3
-3
Misc/NEWS.d/next/Library/2017-12-27-21-55-19.bpo-31639.l3avDJ.rst
...S.d/next/Library/2017-12-27-21-55-19.bpo-31639.l3avDJ.rst
+1
-1
No files found.
Doc/library/http.server.rst
View file @
1cee216c
...
...
@@ -33,7 +33,7 @@ handler. Code to create and run the server looks like this::
:attr:`server_port`. The server is accessible by the handler, typically
through the handler's :attr:`server` instance variable.
.. class:: Thread
ed
HTTPServer(server_address, RequestHandlerClass)
.. class:: Thread
ing
HTTPServer(server_address, RequestHandlerClass)
This class is identical to HTTPServer but uses threads to handle
requests by using the :class:`~socketserver.ThreadingMixIn`. This
...
...
@@ -43,7 +43,7 @@ handler. Code to create and run the server looks like this::
.. versionadded:: 3.7
The :class:`HTTPServer` and :class:`Thread
ed
HTTPServer` must be given
The :class:`HTTPServer` and :class:`Thread
ing
HTTPServer` must be given
a *RequestHandlerClass* on instantiation, of which this module
provides three different variants:
...
...
Lib/http/server.py
View file @
1cee216c
...
...
@@ -83,7 +83,7 @@ XXX To do:
__version__
=
"0.6"
__all__
=
[
"HTTPServer"
,
"Thread
ed
HTTPServer"
,
"BaseHTTPRequestHandler"
,
"HTTPServer"
,
"Thread
ing
HTTPServer"
,
"BaseHTTPRequestHandler"
,
"SimpleHTTPRequestHandler"
,
"CGIHTTPRequestHandler"
,
]
...
...
@@ -140,7 +140,7 @@ class HTTPServer(socketserver.TCPServer):
self
.
server_port
=
port
class
Thread
ed
HTTPServer
(
socketserver
.
ThreadingMixIn
,
HTTPServer
):
class
Thread
ing
HTTPServer
(
socketserver
.
ThreadingMixIn
,
HTTPServer
):
daemon_threads
=
True
...
...
@@ -1217,7 +1217,7 @@ class CGIHTTPRequestHandler(SimpleHTTPRequestHandler):
def
test
(
HandlerClass
=
BaseHTTPRequestHandler
,
ServerClass
=
Thread
ed
HTTPServer
,
ServerClass
=
Thread
ing
HTTPServer
,
protocol
=
"HTTP/1.0"
,
port
=
8000
,
bind
=
""
):
"""Test the HTTP request handler class.
...
...
Misc/NEWS.d/next/Library/2017-12-27-21-55-19.bpo-31639.l3avDJ.rst
View file @
1cee216c
http.server now exposes a Thread
ed
HTTPServer class and uses it when the
http.server now exposes a Thread
ing
HTTPServer class and uses it when the
module is run with ``-m`` to cope with web browsers pre-opening sockets.
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