summaryrefslogtreecommitdiffstats
path: root/Lib/wsgiref
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2019-05-24 17:24:42 (GMT)
committerGitHub <noreply@github.com>2019-05-24 17:24:42 (GMT)
commit14738ff83d852c95a0cf33e5c90a85860a9c5620 (patch)
tree14ac00f5688e5352c9bfa0a953d1c210f21f454e /Lib/wsgiref
parentb1fc41784136a2eb9737a7f0c821db52ab8d4dee (diff)
downloadcpython-14738ff83d852c95a0cf33e5c90a85860a9c5620.zip
cpython-14738ff83d852c95a0cf33e5c90a85860a9c5620.tar.gz
cpython-14738ff83d852c95a0cf33e5c90a85860a9c5620.tar.bz2
bpo-8138: Initialize wsgiref's SimpleServer as single-threaded (GH-12977)
Diffstat (limited to 'Lib/wsgiref')
-rw-r--r--Lib/wsgiref/simple_server.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/wsgiref/simple_server.py b/Lib/wsgiref/simple_server.py
index f71563a..93d01a8 100644
--- a/Lib/wsgiref/simple_server.py
+++ b/Lib/wsgiref/simple_server.py
@@ -127,7 +127,8 @@ class WSGIRequestHandler(BaseHTTPRequestHandler):
return
handler = ServerHandler(
- self.rfile, self.wfile, self.get_stderr(), self.get_environ()
+ self.rfile, self.wfile, self.get_stderr(), self.get_environ(),
+ multithread=False,
)
handler.request_handler = self # backpointer for logging
handler.run(self.server.get_app())