Commit 14738ff8 authored by Berker Peksag's avatar Berker Peksag Committed by GitHub

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

parent b1fc4178
......@@ -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())
......
Don't mark ``wsgiref.simple_server.SimpleServer`` as multi-threaded since
``wsgiref.simple_server.WSGIServer`` is single-threaded.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment