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, 27 Nov 2008 00:47:18 +0000 (11:47 +1100)
commit2c83a929959ff51ef746443bc66231568849aa08
tree19b3a388cab35c8f39e6213c296a313c88b0f6a2
parent27d0708eaf67e88ec2344a194b6a6ccb69588d37
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