Fix segmentation fault when closing concurrent tunnels
- 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
Showing
Please
register
or
sign in
to comment