• Stefy Lanza (nextime / spora )'s avatar
    Remove aggressive socket validation causing SSH client disconnections · e834e7eb
    Stefy Lanza (nextime / spora ) authored
    - Eliminated fcntl socket validation check that was causing false positives
    - Removed premature socket invalidation during active data transmission
    - Fixed issue where SSH client would disconnect immediately after receiving SSH server version
    - Prevented 'Bad file descriptor' errors during SSH protocol handshake
    - Allowed send() operation to handle its own socket validation naturally
    - Resolved race condition between socket checking and data transmission
    - Fixed critical bug causing SSH sessions to terminate during key exchange
    - Improved robustness of WebSocket-to-SSH data forwarding
    - Enhanced connection stability during SSH protocol negotiation
    - Removed unnecessary socket state checking that interfered with normal operation
    - Fixed timing-sensitive socket validation that caused premature disconnections
    - Resolved intermittent connection failures during SSH handshake phase
    - Improved error handling by letting send() handle socket validation appropriately
    - Fixed issue where valid sockets were incorrectly marked as invalid
    - Enhanced reliability of SSH tunneling through WebSocket connections
    - Resolved socket state management conflicts during data transmission
    - Fixed critical timing issue in SSH protocol data exchange
    - Improved overall stability of SSH client-server communication
    e834e7eb
tunnel.c 32.2 KB