webssh/tests
Kyle Larose f0e2ddb821
do not process message for closed workers
WsockHandler stores a weak reference to the ssh backend worker. The
worker closes itself if the backend connection closes (e.g. the user
exists the ssh session). That happens in parallel to the websocket
handler processing messages, so it is possible for a message to arrive
when the worker no longer has any strong references, leading to an
exception being thrown.

Handle this case by treating the None worker the same way we do invalid
messages: by simply returning.
2022-11-18 08:55:03 -05:00
..
data Added fonts directory 2020-01-23 17:25:51 +08:00
__init__.py Use absolute path for importing modules 2018-04-26 22:38:16 +08:00
sshserver.py Refactoring 2019-10-09 11:46:47 +08:00
test_app.py Use options.delay instead of DELAY 2020-10-07 20:29:13 +08:00
test_handler.py do not process message for closed workers 2022-11-18 08:55:03 -05:00
test_main.py Refactored method is_forbidden 2019-01-16 22:58:49 +08:00
test_policy.py Updated test_policy.py 2018-11-15 19:49:45 +08:00
test_settings.py Added test for check_encoding_setting 2020-02-13 10:15:29 +08:00
test_utils.py Support link scope ipv6 address 2019-09-19 10:55:34 +08:00
utils.py Updated tests/utils.py 2018-09-18 20:56:34 +08:00