diff options
author | Felix Lange <fjl@twurst.com> | 2019-06-11 18:45:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-11 18:45:33 +0800 |
commit | c420dcb39c342842f6c115376774c79162465c64 (patch) | |
tree | 5eeedb21d108132a16513bdd7bac5916b8124b7a /internal | |
parent | c0a034ec899655e6014a2c84f73e0c625bbd87d0 (diff) | |
download | go-tangerine-c420dcb39c342842f6c115376774c79162465c64.tar go-tangerine-c420dcb39c342842f6c115376774c79162465c64.tar.gz go-tangerine-c420dcb39c342842f6c115376774c79162465c64.tar.bz2 go-tangerine-c420dcb39c342842f6c115376774c79162465c64.tar.lz go-tangerine-c420dcb39c342842f6c115376774c79162465c64.tar.xz go-tangerine-c420dcb39c342842f6c115376774c79162465c64.tar.zst go-tangerine-c420dcb39c342842f6c115376774c79162465c64.zip |
p2p: enforce connection retry limit on server side (#19684)
The dialer limits itself to one attempt every 30s. Apply the same limit
in Server and reject peers which try to connect too eagerly. The check
against the limit happens right after accepting the connection.
Further changes in this commit ensure we pass the Server logger
down to Peer instances, discovery and dialState. Unit test logging now
works in all Server tests.
Diffstat (limited to 'internal')
0 files changed, 0 insertions, 0 deletions