]> granicus.if.org Git - python/commitdiff
Closes #19258: close WSGI server after handling request in demo code.
authorGeorg Brandl <georg@python.org>
Mon, 14 Oct 2013 14:52:13 +0000 (16:52 +0200)
committerGeorg Brandl <georg@python.org>
Mon, 14 Oct 2013 14:52:13 +0000 (16:52 +0200)
Lib/wsgiref/simple_server.py

index e6a385b03c74d3a63d2c34a9ab978ad9a2bf0301..12119ea5c1d9293e7c135d992055b1f8d01ddc9d 100644 (file)
@@ -153,3 +153,4 @@ if __name__ == '__main__':
     import webbrowser
     webbrowser.open('http://localhost:8000/xyz?abc')
     httpd.handle_request()  # serve one request, then exit
+    httpd.server_close()