Browse Source

do not reset pingTimer

don't bother with this "only ping when we havent heard from them". lets
just always ping every peer from the sendRoutine every 10s no matter
what. if they dont pong within pongTimeout, disconnect :)
pull/1196/head
Anton Kaliaev 7 years ago
parent
commit
d6d1f8512d
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 0 additions and 5 deletions
  1. +0
    -5
      p2p/conn/connection.go

+ 0
- 5
p2p/conn/connection.go View File

@ -494,11 +494,6 @@ FOR_LOOP:
c.stopForError(err)
break FOR_LOOP
}
// TODO: don't bother with this "only ping when we havent heard from them".
// lets just always ping every peer from the sendRoutine every 10s no matter what.
// if they dont pong within pongTimeout, disconnect :)
c.pingTimer.Reset()
}
// Cleanup


Loading…
Cancel
Save