basho/riak_core — pull request #560 by slfritchie (2014-03-20 05:59:14+00:00)
Title: Handoff sender sends sync periodically

If we can discover the `handoff_receive_timeout value`, then use 1/3rd that interval to send a sync/heartbeat thingie, otherwise 60 seconds (for infinity & undefined).

Purpose: to avoid unhelpful timeouts when the handoff sender is filtering (e.g. repair or ring resizing handoff) and encounters zillions of keys to filter and thus doesn't send anything to the receiver for a while. A workaround is to set the receiver's timeout to be extremely long, but that's a kludge IMHO.