]> git.ipfire.org Git - thirdparty/tornado.git/commit
websocket: Add warning if client connection isn't closed cleanly 3264/head
authorBen Darnell <ben@bendarnell.com>
Sun, 7 May 2023 21:03:33 +0000 (17:03 -0400)
committerBen Darnell <ben@bendarnell.com>
Mon, 8 May 2023 01:22:07 +0000 (21:22 -0400)
commit321a9cdcd8f42e54aacd3ec5e865c64cd3530179
tree1b83c48e7c8565954f7098581ac671d4ee07bc99
parente0fa53ee96db720dc7800d0248c39a4ffb8911e9
websocket: Add warning if client connection isn't closed cleanly

This gives a warning that is not dependent on GC for the issue
in #3257. This new warning covers all websocket client connections,
while the previous GC-dependent warning only affected those with
ping_interval set. This unfortunately introduces an effective
requirement to close all websocket clients explicitly for those
who are strict about warnings.
tornado/test/websocket_test.py
tornado/websocket.py