in reply to How can I make a client realize the server connection is gone?
On FreeBSD this returns a value other than zero if there has been an error on the socket, so I am able to trap that and exit gracefully if an error occurs on the socket.my $error_code = $socket->sockopt(SO_ERROR);
|
|---|