• Stefy Lanza (nextime / spora )'s avatar
    Fix SSH client socket invalidation issue in handle_tunnel_data · 6a497894
    Stefy Lanza (nextime / spora ) authored
    - Fixed premature tunnel deactivation when socket fcntl check fails
    - Removed aggressive tunnel shutdown on socket validity check failure
    - Socket invalidation during tunnel_data processing no longer kills entire tunnel
    - SSH client disconnections during data exchange are now handled gracefully
    - Prevents race condition between socket validation and data transmission
    - Allows tunnel to continue operating even if individual socket checks fail
    - Improved error handling for temporary socket state issues
    - Fixed issue where SSH client would disconnect immediately after version exchange
    - Resolved 'Bad file descriptor' errors during active tunnel operation
    - Maintains tunnel stability during SSH protocol handshake phase
    - Prevents false positive tunnel closures due to timing-sensitive socket checks
    - Added more resilient socket state management for connection stability
    - Fixed critical bug causing SSH sessions to terminate prematurely
    - Improved robustness of WebSocket-to-SSH data forwarding mechanism
    - Resolved intermittent connection failures during protocol negotiation
    - Enhanced error recovery for network socket state fluctuations
    - Implemented more forgiving socket validation during data transmission
    6a497894
tunnel.c 32.6 KB