[Python-checkins] cpython (3.3): Closes #19258: close WSGI server after handling request in demo code.

georg.brandl python-checkins at python.org
Mon Oct 14 16:53:22 CEST 2013


http://hg.python.org/cpython/rev/f1e66ef64d17
changeset:   86364:f1e66ef64d17
branch:      3.3
parent:      86362:3507be2f94d4
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
@@ -155,3 +155,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