HomeThat World

p2p: enforce connection retry limit on server side (#19684)

Authored by Felix Lange <fjl@twurst.com> on Jun 11 2019, 10:45 AM.

Description

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.

Details

Committed
GitHub <noreply@github.com>Jun 11 2019, 10:45 AM
Parents
rGETHc0a034ec8996: eth, les: reject stale request (#19689)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETHc420dcb39c34: p2p: enforce connection retry limit on server side (#19684) (authored by Felix Lange <fjl@twurst.com>).Jun 11 2019, 10:45 AM