mirror of
https://github.com/m1ngsama/TNT.git
synced 2025-12-24 10:51:41 +00:00
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. |
||
|---|---|---|
| .. | ||
| .gitkeep | ||
| chat_room.h | ||
| common.h | ||
| message.h | ||
| ssh_server.h | ||
| tui.h | ||
| utf8.h | ||