Do I need to heartbeat to keep a TCP connection open?

The connection should remain open regardless but yes it’s often common to see protocols implement a heartbeat in order to help detect dead connections, IRC with the PING command for example.

Leave a Comment