[Python-checkins] cpython (2.7): Closes #19258: close WSGI server after handling request in demo code.
georg.brandl
python-checkins at python.org
Mon Oct 14 16:53:23 CEST 2013
http://hg.python.org/cpython/rev/64a1e224042e
changeset: 86365:64a1e224042e
branch: 2.7
parent: 86359:c99a3566be83
user: Georg Brandl <georg at python.org>
date: Mon Oct 14 16:52:13 2013 +0200
summary:
Closes #19258: close WSGI server after handling request in demo code.
files:
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
--- a/Lib/wsgiref/simple_server.py
+++ b/Lib/wsgiref/simple_server.py
@@ -153,3 +153,4 @@
import webbrowser
webbrowser.open('http://localhost:8000/xyz?abc')
httpd.handle_request() # serve one request, then exit
+ httpd.server_close()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list