• Stefy Lanza (nextime / spora )'s avatar
    Fix segmentation fault when closing concurrent tunnels · 220bdb98
    Stefy Lanza (nextime / spora ) authored
    - Add forward_thread field to tunnel_t structure for thread synchronization
    - Remove pthread_detach() to allow proper thread joining during cleanup
    - Add pthread_join() in cleanup to wait for forwarding thread completion
    - Prevent race conditions between cleanup and forwarding threads
    - Ensure tunnel resources are not freed while threads are still using them
    - Fix concurrent connection cleanup issues in wsssht daemon mode
    220bdb98
tunnel.h 3.59 KB