in reply to Re: IO::Socket client does not detect when server network connection dies
in thread IO::Socket client does not detect when server network connection dies

but you should be able to use the connected method of IO::Socket.

No. See your second link.

  • Comment on Re^2: IO::Socket client does not detect when server network connection dies