Keepalive packets were only sent every KeepaliveInterval if the socket
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 20 Nov 2008 02:35:08 +0000 (13:35 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 20 Nov 2008 02:35:08 +0000 (13:35 +1100)
commit7a18f33ec7512100dd067c65f0470889ff8fd591
tree2b53ff815437c0e23ae1b8f320010141a2ec5767
parenta9a1156ea4e10483a4bf4265b8e9203f0af033aa
Keepalive packets were only sent every KeepaliveInterval if the socket
had been completely idle during that interval.
If we had been sending other packets such as Messages, Calls or Controls
there wouldnt be any need for an explicit keepalive and thus we didnt
send one.

This does make it somewhat awkward when analyzing traces since it is
non-intuitive when keepalives are sent and when they are not sent.

Change the keepalive logic to always send a keepalive regardless of
whether the link is idle or not.
server/ctdb_keepalive.c