Fix thread synchronization issues in wsssh.c
- 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
Showing
Please
register
or
sign in
to comment