Got some more advice from a network engineer about pings and heartbeats:
Heartbeats already contain a sequence number, but it is in binary format.
String format would make
it easier to capture packets on the network and identify dropped heartbeats.
For this to be useful, all pings and heartbeats need to be logged on both
sending and receiving
side. Use class loggers so that this can be turned off if it is not wanted. Or
alternatively, make ping
and heartbeat logging options that are off by default but can be turned on.
Original issue reported on code.google.com by willhains on 18 Jun 2008 at 11:26
Original issue reported on code.google.com by
willhains
on 18 Jun 2008 at 11:26