summaryrefslogtreecommitdiff
path: root/Lib/wsgiref/simple_server.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-10-14 16:52:13 +0200
committerGeorg Brandl <georg@python.org>2013-10-14 16:52:13 +0200
commit2933cbd5f4e075844728e7fcc8d3fa6588b61ff0 (patch)
treeafafa2580bb1336d1fd87a452fb7021dc37e4918 /Lib/wsgiref/simple_server.py
parent1693c3595b4ea9f3653ed925c35263418847583c (diff)
downloadcpython-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.py1
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()