in reply to How do I make a tcp socket heartbeat?

As Haukex suggests ... it should always be a mantra: "am I now trying to do 'Actum Ne Agas: A Thing Already Done?'" In this case the answer is definitely "yes." There are plenty of both high-level and low-level frameworks on CPAN which have already thoroughly solved this problem. The code has been very thoroughly tested and it works.
  • Comment on Re: How do I make a tcp socket heartbeat?

Replies are listed 'Best First'.
Re^2: How do I make a tcp socket heartbeat?
by pudda (Acolyte) on Oct 09, 2020 at 16:56 UTC
    I agree, I used IO::Socket because it was in almost every topic I searched. But I'm using Mojo as suggested by Haukex. Thanks for the advice.