diff options
author | Georg Brandl <georg@python.org> | 2013-10-14 14:52:13 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-10-14 14:52:13 (GMT) |
commit | d98d6cb45125476ba806f7e4eca4bb038f27adb0 (patch) | |
tree | f1d5315d92c48c46dc88e90712f544f4f859fbc2 /Lib/wsgiref | |
parent | 0079ffc0920b89e5ca3b70746c5cc91da7728ac3 (diff) | |
download | cpython-d98d6cb45125476ba806f7e4eca4bb038f27adb0.zip cpython-d98d6cb45125476ba806f7e4eca4bb038f27adb0.tar.gz cpython-d98d6cb45125476ba806f7e4eca4bb038f27adb0.tar.bz2 |
Closes #19258: close WSGI server after handling request in demo code.
Diffstat (limited to 'Lib/wsgiref')
-rw-r--r-- | Lib/wsgiref/simple_server.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/wsgiref/simple_server.py b/Lib/wsgiref/simple_server.py index a6015fb..cd9751a 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() |