plugeth/p2p
Lewis Marshall 54aeb8e4c0 p2p/simulations: various stability fixes (#15198)
p2p/simulations: introduce dialBan

- Refactor simulations/network connection getters to support
  avoiding simultaneous dials between two peers If two peers dial
  simultaneously, the connection will be dropped to help avoid
  that, we essentially lock the connection object with a
  timestamp which serves as a ban on dialing for a period of time
  (dialBanTimeout).

- The connection getter InitConn can be wrapped and passed to the
  nodes via adapters.NodeConfig#Reachable field and then used by
  the respective services when they initiate connections. This
  massively stablise the emerging connectivity when running with
  hundreds of nodes bootstrapping a network.

p2p: add Inbound public method to p2p.Peer

p2p/simulations: Add server id to logs to support debugging
in-memory network simulations when multiple peers are logging.

p2p: SetupConn now returns error. The dialer checks the error and
only calls resolve if the actual TCP dial fails.
2017-12-01 12:49:04 +01:00
..
discover build: enable unconvert linter (#15456) 2017-11-10 19:06:45 +02:00
discv5 cmd/geth: add --config file flag (#13875) 2017-04-12 17:27:23 +03:00
nat p2p/nat: delete port mapping before adding (#15222) 2017-10-06 13:39:47 +02:00
netutil cmd/geth: add --config file flag (#13875) 2017-04-12 17:27:23 +03:00
simulations p2p/simulations: various stability fixes (#15198) 2017-12-01 12:49:04 +01:00
dial_test.go p2p: add network simulation framework (#14982) 2017-09-25 10:08:07 +02:00
dial.go p2p/simulations: various stability fixes (#15198) 2017-12-01 12:49:04 +01:00
message_test.go all: fix go vet warnings 2016-04-15 11:17:27 +02:00
message.go p2p: add network simulation framework (#14982) 2017-09-25 10:08:07 +02:00
metrics.go eth, metrics, p2p: prepare metrics and net packets to eth/62 2015-08-21 10:30:57 +03:00
peer_error.go p2p, p2p/discover, p2p/nat: rework logging using context keys 2017-02-28 10:20:29 +01:00
peer_test.go p2p, p2p/discover, p2p/nat: rework logging using context keys 2017-02-28 10:20:29 +01:00
peer.go p2p/simulations: various stability fixes (#15198) 2017-12-01 12:49:04 +01:00
protocol.go eth, p2p, rpc/api: polish protocol info gathering 2015-10-28 12:44:15 +02:00
rlpx_test.go all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}() 2016-02-21 22:34:34 +00:00
rlpx.go p2p: snappy encoding for devp2p (version bump to 5) (#15106) 2017-09-26 16:54:49 +03:00
server_test.go p2p/simulations: various stability fixes (#15198) 2017-12-01 12:49:04 +01:00
server.go p2p/simulations: various stability fixes (#15198) 2017-12-01 12:49:04 +01:00