TNT/include
m1ngsama c0cb22a85f Add SSH read timeout and PTY handling improvements
Fixes thread accumulation and blocking issues:

1. SSH read timeouts
   - Use ssh_channel_read_timeout() with 30s timeout
   - Handle SSH_AGAIN, SSH_ERROR return codes properly
   - 60s timeout for username input
   - Prevents threads blocking forever on dead connections

2. Improved PTY request handling
   - Exit loop after PTY + SHELL received
   - Don't loop on WINDOW_CHANGE during init
   - Clear termination conditions

3. Better UTF-8 validation
   - Check multi-byte read completeness
   - Skip incomplete sequences gracefully

Prevents "zombie threads" and eliminates need to restart
after extended operation.
2025-12-01 14:00:00 +08:00
..
.gitkeep Initial commit 2025-07-01 09:00:00 +08:00
chat_room.h Initial commit 2025-07-01 09:00:00 +08:00
common.h Initial commit 2025-07-01 09:00:00 +08:00
message.h Initial commit 2025-07-01 09:00:00 +08:00
ssh_server.h Add SSH read timeout and PTY handling improvements 2025-12-01 14:00:00 +08:00
tui.h Replace telnet with SSH and fix full-screen display 2025-11-24 16:48:14 +08:00
utf8.h Initial commit 2025-07-01 09:00:00 +08:00