]> git.ipfire.org Git - thirdparty/tornado.git/commit
websocket: Make WSH.get a coroutine
authorBen Darnell <ben@bendarnell.com>
Mon, 24 Dec 2018 16:57:33 +0000 (11:57 -0500)
committerBen Darnell <ben@bendarnell.com>
Sat, 29 Dec 2018 03:17:57 +0000 (22:17 -0500)
commite69becbf8c994be5bfa6584ef72df594b27934b5
tree23e40b3e5dc82f28dc6eac69074d45dad7727cbe
parente719d82050e493080eca5f8e21c4bda2bcc9c25e
websocket: Make WSH.get a coroutine

This is necessary to convert accept_connection to native coroutines -
the handshake no longer completes within a single IOLoop iteration
with this change due to coroutine scheduling.

This has the side effect of keeping the HTTP1Connection open for the
lifetime of the websocket connection. That's not great for memory, but
might help streamline close handling. Either way, it'll be refactored
in a future change.
tornado/websocket.py