]> git.ipfire.org Git - thirdparty/tornado.git/commit
websocket: Catch errors in async open() correctly 2581/head
authorBen Darnell <ben@bendarnell.com>
Sat, 2 Feb 2019 18:44:56 +0000 (13:44 -0500)
committerBen Darnell <ben@bendarnell.com>
Sat, 2 Feb 2019 18:44:56 +0000 (13:44 -0500)
commitdc354c57adac0c6f141677a4400e2a748d9c0e92
treecb4e7795c77831f4bca6d131f5be05fe4e78a571
parent975e9168560cc03f6210d0d3aab10c870bd47080
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
tornado/test/websocket_test.py
tornado/websocket.py