in reply to Re^4: How can I test TCP socket status in Perl?
in thread How can I test TCP socket status in Perl?
This may 'work' but be aware that your call to connected() isn't really achieving anything. You should be testing the success or failure of each individual read/write to the socket anyway.