heartbeater: slight fixes to backoff behavior

1. There was an off-by-one error when deciding how many failed heartbeats
   should lead to back off.
2. We only reset the connection to the master when transitioning to back off
   behavior, but I think the original intent was to reset it on every failed
   heartbeat thereafter.

These changes shouldn't have any real impact, but I think they make the back
off behavior more intuitive.

Change-Id: I8f1dbc0a8b2d052eeb39277e0b8d76e612e9b747
Reviewed-on: http://gerrit.cloudera.org:8080/3847
Tested-by: Kudu Jenkins
Reviewed-by: Todd Lipcon <todd@apache.org>
1 file changed