bpo-8138: Initialize wsgiref's SimpleServer as single-threaded (GH-12977)

This commit is contained in:
Berker Peksag 2019-05-24 20:24:42 +03:00 committed by GitHub
parent b1fc417841
commit 14738ff83d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View 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())

View File

@ -0,0 +1,2 @@
Don't mark ``wsgiref.simple_server.SimpleServer`` as multi-threaded since
``wsgiref.simple_server.WSGIServer`` is single-threaded.