diff options
author | Dmitry Shulyak <yashulyak@gmail.com> | 2018-02-21 22:03:26 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-02-21 22:03:26 +0800 |
commit | 14c76371bab105a99c796a652df86df3e3e7d958 (patch) | |
tree | 02573d4df4ec95f2113dc72a40bb89685607a516 /interfaces.go | |
parent | 7d578246632c15b15c615d66ccfbd99edd2642c6 (diff) | |
download | go-tangerine-14c76371bab105a99c796a652df86df3e3e7d958.tar go-tangerine-14c76371bab105a99c796a652df86df3e3e7d958.tar.gz go-tangerine-14c76371bab105a99c796a652df86df3e3e7d958.tar.bz2 go-tangerine-14c76371bab105a99c796a652df86df3e3e7d958.tar.lz go-tangerine-14c76371bab105a99c796a652df86df3e3e7d958.tar.xz go-tangerine-14c76371bab105a99c796a652df86df3e3e7d958.tar.zst go-tangerine-14c76371bab105a99c796a652df86df3e3e7d958.zip |
p2p: when peer is removed remove it also from dial history (#16060)
This change removes a peer information from dialing history
when peer is removed from static list. It allows to force a
server to re-dial concrete peer if it is needed.
In our case we are running geth node on mobile devices, and
it is common for a network connection to flap on mobile.
Almost every time it flaps or network connection is changed
from cellular to wifi peers are disconnected with read
timeout. And usually it takes 30 seconds (default expiration
timeout) to recover connection with static peers after
connectivity is restored.
This change allows us to reconnect with peers almost
immediately and it seems harmless enough.
Diffstat (limited to 'interfaces.go')
0 files changed, 0 insertions, 0 deletions