go-ethereum/p2p
Felix Lange c420dcb39c
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.
2019-06-11 12:45:33 +02:00
..
discover p2p/enode: improve IPv6 support, add ENR text representation (#19663) 2019-06-07 15:31:00 +02:00
discv5 vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
enode p2p/enode: improve IPv6 support, add ENR text representation (#19663) 2019-06-07 15:31:00 +02:00
enr p2p/enode: improve IPv6 support, add ENR text representation (#19663) 2019-06-07 15:31:00 +02:00
nat p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
netutil p2p: enforce connection retry limit on server side (#19684) 2019-06-11 12:45:33 +02:00
simulations swarm/network: Use different privatekey for bzz overlay in sim (#19313) 2019-03-22 21:37:25 +01:00
testing swarm/storage/localstore: fix export db.Put signature 2019-05-10 12:26:30 +02:00
dial.go p2p: enforce connection retry limit on server side (#19684) 2019-06-11 12:45:33 +02:00
dial_test.go p2p: enforce connection retry limit on server side (#19684) 2019-06-11 12:45:33 +02:00
message.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
message_test.go all: fix go vet warnings 2016-04-15 11:17:27 +02:00
metrics.go core, ethdb, metrics, p2p: expose various counter metrics for grafana 2019-06-11 09:49:13 +03:00
peer.go p2p: enforce connection retry limit on server side (#19684) 2019-06-11 12:45:33 +02:00
peer_error.go p2p: fix some golint warnings (#16577) 2018-05-08 13:08:43 +02:00
peer_test.go p2p: enforce connection retry limit on server side (#19684) 2019-06-11 12:45:33 +02:00
protocol.go p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
rlpx.go accounts, p2p, rpc: make CGO_ENABLED=0 build again (#19593) 2019-05-26 01:07:10 +03:00
rlpx_test.go p2p: remove useless parameter (#19433) 2019-04-10 11:49:02 +03:00
server.go p2p: enforce connection retry limit on server side (#19684) 2019-06-11 12:45:33 +02:00
server_test.go p2p: enforce connection retry limit on server side (#19684) 2019-06-11 12:45:33 +02:00
util.go p2p: enforce connection retry limit on server side (#19684) 2019-06-11 12:45:33 +02:00
util_test.go p2p: enforce connection retry limit on server side (#19684) 2019-06-11 12:45:33 +02:00