]> git.ipfire.org Git - thirdparty/tornado.git/commit
Fix a memory leak and test timeout in websockets.
authorBen Darnell <ben@bendarnell.com>
Tue, 5 Aug 2014 03:46:03 +0000 (23:46 -0400)
committerBen Darnell <ben@bendarnell.com>
Tue, 5 Aug 2014 03:46:03 +0000 (23:46 -0400)
commitdbab79218ffcd124dbfbd1fa06245582ca9c11db
tree88e8a019f68184a7d075143989b4ef16eb4fdd3c
parentfec81f65503a48edf92dc6e2740f77b4082b9033
Fix a memory leak and test timeout in websockets.

In some cases (primarily when prepare() is asynchronous), an
HTTP1ServerConnection could be left waiting forever for a connection
to finish when that connection has been detached and handed off to a
WebSocketHandler.  This would manifest as a leak and a timeout in
tests as the HTTPServer waited for all its existing connections to
finish.

Also fix a bug in the test tearDown method that would actually
wait forever for connections to finish instead of timing out.

Closes #1133.
tornado/http1connection.py
tornado/test/websocket_test.py
tornado/testing.py