Merge pull request #2948 from cristian-ciobanu/ssh-web-console-crash

fix(console): keep SSH web console open after terminal resize
This commit is contained in:
Jeremy Grossmann 2026-10-07 04:58:08 +02:00 committed by GitHub
commit 2fb7056cb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,7 +117,11 @@ class AsyncioSSHServer:
try:
while True:
data = await process.stdin.read(READ_SIZE)
try:
data = await process.stdin.read(READ_SIZE)
except asyncssh.TerminalSizeChanged:
# The upstream serial stream has no terminal size to update.
continue
if not data:
break