That's where the IO::Socket can come into play. Have your daemon send a keepalive bit (it could be some symbol that would never occur in your normal data transmission) and have the other daemon listen for that, and if it finds it, just throw it away. But that communication would cause the connection to persist.
Both daemons would have to do this to keep both of them alive. The transmission of even one bit should be enough, I'd think. | [reply] |