bpo-8138: Initialize wsgiref's SimpleServer as single-threaded (GH-12977)
This commit is contained in:
parent
b1fc417841
commit
14738ff83d
|
@ -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())
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Don't mark ``wsgiref.simple_server.SimpleServer`` as multi-threaded since
|
||||
``wsgiref.simple_server.WSGIServer`` is single-threaded.
|
Loading…
Reference in New Issue