diff options
author | Georg Brandl <georg@python.org> | 2013-10-14 16:52:13 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-10-14 16:52:13 +0200 |
commit | 2933cbd5f4e075844728e7fcc8d3fa6588b61ff0 (patch) | |
tree | afafa2580bb1336d1fd87a452fb7021dc37e4918 /Lib/wsgiref/simple_server.py | |
parent | 1693c3595b4ea9f3653ed925c35263418847583c (diff) | |
download | cpython-2933cbd5f4e075844728e7fcc8d3fa6588b61ff0.tar.gz |
Closes #19258: close WSGI server after handling request in demo code.
Diffstat (limited to 'Lib/wsgiref/simple_server.py')
-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 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() |