]> granicus.if.org Git - python/commitdiff
bpo-8138: Initialize wsgiref's SimpleServer as single-threaded (GH-12977)
authorBerker Peksag <berker.peksag@gmail.com>
Fri, 24 May 2019 17:24:42 +0000 (20:24 +0300)
committerGitHub <noreply@github.com>
Fri, 24 May 2019 17:24:42 +0000 (20:24 +0300)
Lib/wsgiref/simple_server.py
Misc/NEWS.d/next/Library/2019-04-27-02-54-23.bpo-8138.osBRGI.rst [new file with mode: 0644]

index f71563a5ae0890e106de48a27661337660c13119..93d01a863adf59e4dcf2e23d65e025526c273e6e 100644 (file)
@@ -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())
diff --git a/Misc/NEWS.d/next/Library/2019-04-27-02-54-23.bpo-8138.osBRGI.rst b/Misc/NEWS.d/next/Library/2019-04-27-02-54-23.bpo-8138.osBRGI.rst
new file mode 100644 (file)
index 0000000..e94d0a6
--- /dev/null
@@ -0,0 +1,2 @@
+Don't mark ``wsgiref.simple_server.SimpleServer`` as multi-threaded since
+``wsgiref.simple_server.WSGIServer`` is single-threaded.