]> git.ipfire.org Git - thirdparty/tornado.git/commit
IOStream: do not listen for close events if there is no close_callback.
authorBen Darnell <ben@bendarnell.com>
Mon, 12 May 2014 00:23:33 +0000 (20:23 -0400)
committerBen Darnell <ben@bendarnell.com>
Mon, 12 May 2014 00:23:33 +0000 (20:23 -0400)
commit4ee968c1d588d023e28812e004a32a4263f7ad01
tree016a34e194b54333df7efd89af3895b6708bc6b2
parent4f0d837ed2776eddaeb8c80b3224daf97ff35c54
IOStream: do not listen for close events if there is no close_callback.

HTTP1Connection now only registers its close callback when it is done
reading.  This improves performance for synchronous handlers, which no
longer interact with the IOLoop as often.
tornado/http1connection.py
tornado/iostream.py
tornado/test/iostream_test.py
tornado/websocket.py