crenz has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks,
after a socket connection has been established, is it possible to check whether the socket is still connected without trying to read from or write to the socket? I have tried getpeername, but that (contrary to the docs) returns the peer name even when the socket connection has been interrupted.
I want to use this to find out whether the other application I'm talking to via a socket has crashed.
Back to
Seekers of Perl Wisdom