]> git.ipfire.org Git - thirdparty/tornado.git/commit
Add on_close to HTTPServerConnectionDelegate.
authorBen Darnell <ben@bendarnell.com>
Sat, 26 Apr 2014 18:26:41 +0000 (14:26 -0400)
committerBen Darnell <ben@bendarnell.com>
Sat, 26 Apr 2014 18:26:41 +0000 (14:26 -0400)
commit41597204500ed564d226e9d5302ea96594cd43d1
tree5aa13bdd0e1ad594fb29740f123edbf96cab1bfe
parentfd00f9ca63c46de83e318258cb51a0cd7a8af688
Add on_close to HTTPServerConnectionDelegate.

Add close_all_connections method to HTTPServer for testing cleanup.
On Python versions before 3.4, the GC has problems with generators,
so the previous approach of closing all the file descriptors and
leave the rest to the GC no longer works.  (Only Python 3.3 prints
the uncollectable garbage warnings, but the problem is present
in earlier versions).
tornado/http1connection.py
tornado/httpserver.py
tornado/httputil.py
tornado/testing.py