]> git.ipfire.org Git - thirdparty/tornado.git/commit
asyncio: Fix a race between close and initialize 2395/head
authorBen Darnell <ben@bendarnell.com>
Sun, 20 May 2018 15:28:03 +0000 (11:28 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 20 May 2018 15:29:32 +0000 (11:29 -0400)
commitb167433b99d2c0cdc54b1b66ae776b7b70f6d9ab
treef718ccd135d604c94412c120b8e49df850826a91
parentef034425b520bcf11f29d97c4355d7dcc9325e03
asyncio: Fix a race between close and initialize

The close method of one IOLoop could race with the initialize method
of another one, leading to KeyErrors raised in close().

Fixes #2367
tornado/platform/asyncio.py
tornado/test/ioloop_test.py