summaryrefslogtreecommitdiffstats
path: root/Lib/wsgiref
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-10-14 14:52:13 (GMT)
committerGeorg Brandl <georg@python.org>2013-10-14 14:52:13 (GMT)
commitd98d6cb45125476ba806f7e4eca4bb038f27adb0 (patch)
treef1d5315d92c48c46dc88e90712f544f4f859fbc2 /Lib/wsgiref
parent0079ffc0920b89e5ca3b70746c5cc91da7728ac3 (diff)
downloadcpython-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.py1
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()