From: Georg Brandl Date: Mon, 14 Oct 2013 14:52:13 +0000 (+0200) Subject: Closes #19258: close WSGI server after handling request in demo code. X-Git-Tag: v3.4.0a4~105^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d98d6cb45125476ba806f7e4eca4bb038f27adb0;p=python Closes #19258: close WSGI server after handling request in demo code. --- diff --git a/Lib/wsgiref/simple_server.py b/Lib/wsgiref/simple_server.py index a6015fb5ef..cd9751a655 100644 --- a/Lib/wsgiref/simple_server.py +++ b/Lib/wsgiref/simple_server.py @@ -155,3 +155,4 @@ if __name__ == '__main__': import webbrowser webbrowser.open('http://localhost:8000/xyz?abc') httpd.handle_request() # serve one request, then exit + httpd.server_close()