1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-26 23:04:49 +03:00
wezterm/wezterm-ssh
Wez Furlong c8c3b8378a ssh: avoid busy loop when all channels are closed on the session
We need to notice when all of the streams associated with a channel are
closed and remove the channel from the set that we're polling in the
main loop, to avoid continually polling the closed descriptors.

Additionally, if the Session has been dropped, we know that we cannot
be asked to create any new channels, so if there are no more channels
then we can and should exit that dispatch loop and allow the resources
to be cleaned up.

refs: https://github.com/wez/wezterm/issues/1993#issuecomment-1130539934
2022-05-19 21:02:06 -07:00
..
examples deps: remove pretty_env_loggger 2022-04-07 08:24:07 -07:00
src ssh: avoid busy loop when all channels are closed on the session 2022-05-19 21:02:06 -07:00
tests deps: remove pretty_env_loggger 2022-04-07 08:24:07 -07:00
Cargo.toml deps: prune some unused deps 2022-05-19 06:48:09 -07:00