make connection heartbeating independent of periodic gossip

This was a convenient but rather suspect coupling. In particular, it
will break if the period gossip logic changes s.t. it no longer sends
gossip on all connections every interval.
This commit is contained in:
Matthias Radestock committed 2015-04-09 11:44:13 +01:00
1 parent cec1efbcef
commit 40d127d9a4
3 files changed
+10 -3

No files matched your search

+2 -1
View File
@@ -8,7 +8,8 @@ const (
type ProtocolTag byte
const (
ProtocolConnectionEstablished ProtocolTag = iota
ProtocolHeartbeat ProtocolTag = iota
ProtocolConnectionEstablished
ProtocolFragmentationReceived
ProtocolStartFragmentationTest
ProtocolNonce