]> git.ipfire.org Git - thirdparty/tornado.git/commit
websocket: Catch errors in async open() correctly 2589/head
authorBen Darnell <ben@bendarnell.com>
Mon, 11 Feb 2019 02:02:25 +0000 (21:02 -0500)
committerPierce Lopez <pierce.lopez@gmail.com>
Sun, 24 Feb 2019 20:19:35 +0000 (15:19 -0500)
commite38f2ae5e14ab5ea8dec22ec0bc306984b89c3ab
tree276e6057cda948ac5cad4946ff75304155ec747c
parentcc2cf078a39abec6f8d181f76a4e5ba9432364f3
websocket: Catch errors in async open() correctly

Previously if open() was a coroutine and raised an error, the
connection would be left open.

Fixes #2570
backport of dc354c57adac to 5.1

TestWebsocketHandler always requires close_future in this branch
tornado/test/websocket_test.py
tornado/websocket.py