• Stefy Lanza (nextime / spora )'s avatar
    Fix thread synchronization issues in wsssh.c · 8438ebe0
    Stefy Lanza (nextime / spora ) authored
    - Added proper mutex protection for active_tunnel access
    - Fixed race condition between main thread and forwarding thread
    - Protected SSL connection access with mutex locks
    - Fixed socket setting with proper mutex synchronization
    - Ensured thread-safe access to tunnel state variables
    - Prevented concurrent access to shared tunnel resources
    - Added proper SSL connection lifecycle management
    - Fixed potential data races in WebSocket message handling
    8438ebe0
wsssh.c 25.7 KB