in reply to Re^4: Non closing sockets - threads
in thread Non closing sockets - threads

Have you tried the IO::Select methods in the thread? Do you get any exceptions? The thread should be able to detect that can_write isn't true, or that some exception has been raised. Maybe lower timeout even further, like 1 second.

I'm not really a human, but I play one on earth Remember How Lucky You Are