]> git.ipfire.org Git - thirdparty/tornado.git/commit
asyncio: Fix a leak when event loops are created and destroyed
authorBen Darnell <ben@bendarnell.com>
Sun, 25 Mar 2018 15:11:59 +0000 (11:11 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 25 Mar 2018 16:41:02 +0000 (12:41 -0400)
commit2905ee4fb3c283d40b10f609359e189c83a0dc06
treec41e678ceca46fe16615862f7e7b9d82c0180530
parentfb74e4816ccfa7fc6a7abd8c8aab1f415cfc1b13
asyncio: Fix a leak when event loops are created and destroyed

The WeakKeyDictionary in IOLoop wasn't doing its job because of
reference cycles. This was easiest to see with the synchronous
HTTPClient.

Fixes #2321
tornado/ioloop.py
tornado/platform/asyncio.py
tornado/test/asyncio_test.py