willemt / raft

C implementation of the Raft Consensus protocol, BSD licensed
Other
1.13k stars 271 forks source link

Only send "heartbeat" AppendEntries requests during idle periods #89

Open freeekanayaka opened 6 years ago

freeekanayaka commented 6 years ago

Reset the request_timeout timer when an "actual" AppendEntries request is received from the user, since that effectively already counts as "heartbeat" from the follower's perspective.

Fixes #88.