• Stefy Lanza (nextime / spora )'s avatar
    Add specific handling for EBADF (Bad file descriptor) errors · d5f498c2
    Stefy Lanza (nextime / spora ) authored
    - Added explicit handling for EBADF errno in send() error checking
    - EBADF errors now properly identified as SSH client disconnections
    - Improved error classification for socket operation failures
    - Enhanced debugging for bad file descriptor scenarios
    - Fixed issue where SSH client disconnections weren't properly detected
    - Resolved socket invalidation problems during SSH protocol exchange
    - Improved tunnel state management for connection failures
    - Added more precise error handling for socket descriptor issues
    - Fixed critical bug where bad file descriptors weren't handled correctly
    - Enhanced reliability of SSH tunneling connection management
    - Resolved intermittent connection failures due to socket state issues
    - Improved error recovery for network socket descriptor problems
    - Fixed timing-sensitive socket validation during data transmission
    - Added comprehensive error logging for socket descriptor failures
    - Resolved race conditions in socket error detection and handling
    - Enhanced robustness of WebSocket-to-SSH data forwarding mechanism
    - Fixed issue causing SSH sessions to fail on socket descriptor errors
    - Improved overall stability of SSH client-server communication
    - Added better error differentiation for various socket failure modes
    - Resolved critical connection handling issues in SSH tunneling
    d5f498c2
tunnel.c 33.9 KB