]> 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 a6015fb5ef87f79f83abde50dc6652f94269c0f4..cd9751a6551b5800757806f79d2f3c0457663aab 100644 (file)
@@ -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()