Péter Szilágyi
b61f48e5aa
cmd, mobile, node, p2p: surface the discovery V5 bootnodes
8 years ago
Péter Szilágyi
178da7c6a9
mobile: initial wrappers for mobile support
8 years ago
Zsolt Felfoldi
49da42983a
p2p/discv5: added new topic discovery package
8 years ago
Firescar96
4c3da0f2e1
node, p2p, internal: Add ability to remove peers via admin interface
8 years ago
Felix Lange
542b839ec7
node, p2p: move network config out of Server
...
This silences a go vet message about copying p2p.Server in package node.
9 years ago
Felix Lange
32bb280179
p2p: improve readability of dial task scheduling code
9 years ago
Felix Lange
04c6369a09
p2p, p2p/discover: track bootstrap state in p2p/discover
...
This change simplifies the dial scheduling logic because it
no longer needs to track whether the discovery table has been
bootstrapped.
9 years ago
Péter Szilágyi
abb53644c6
p2p: always allow dynamic dials if network not disabled
9 years ago
Péter Szilágyi
e46ab3bdcd
eth, p2p, rpc/api: polish protocol info gathering
9 years ago
Jeffrey Wilcke
269c5c7107
Revert "fdtrack: temporary hack for tracking file descriptor usage"
...
This reverts commit 5c949d3b3b
.
9 years ago
Felix Lange
edccc7ae34
p2p: continue listening after temporary errors
9 years ago
Felix Lange
5c949d3b3b
fdtrack: temporary hack for tracking file descriptor usage
...
Package fdtrack logs statistics about open file descriptors.
This should help identify the source of #1549 .
9 years ago
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a
.
9 years ago
Felix Lange
3f047be5aa
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
9 years ago
Felix Lange
bdae4fd573
all: add some godoc synopsis comments
9 years ago
Felix Lange
ea54283b30
all: update license information
9 years ago
Péter Szilágyi
6994a3daaa
p2p: instrument P2P networking layer
10 years ago
Felix Lange
6fb810adaa
p2p: throttle all discovery lookups
...
Lookup calls would spin out of control when network connectivity was
lost. The throttling that was in place only took effect when the table
returned zero results, which doesn't happen very often.
The new throttling should not have a negative impact when the host is
online. Lookups against the network take some time and dials for all
results must complete or hit the cache before a new one is started. This
usually takes longer than four seconds, leaving online lookups
unaffected.
Fixes #1296
10 years ago
Felix Lange
3239aca69b
p2p: bump global write timeout to 20s
...
The previous value of 5 seconds causes timeouts for legitimate messages
if large messages are sent.
10 years ago
Péter Szilágyi
68898a4d6b
p2p: fix Self() panic if listening is disabled
10 years ago
Péter Szilágyi
e1a0ee8fc5
cmd/geth, cmd/utils, eth, p2p: pass and honor a no discovery flag
10 years ago
Péter Szilágyi
278183c7e7
eth, p2p: start the p2p server even if maxpeers == 0
10 years ago
Felix Lange
9e1fd70b50
p2p: decrease frameReadTimeout to 30s
...
This detects hanging connections sooner. We send a ping every 15s and
other implementation have similar limits.
10 years ago
Felix Lange
1440f9a37a
p2p: new dialer, peer management without locks
...
The most visible change is event-based dialing, which should be an
improvement over the timer-based system that we have at the moment.
The dialer gets a chance to compute new tasks whenever peers change or
dials complete. This is better than checking peers on a timer because
dials happen faster. The dialer can now make more precise decisions
about whom to dial based on the peer set and we can test those
decisions without actually opening any sockets.
Peer management is easier to test because the tests can inject
connections at checkpoints (after enc handshake, after protocol
handshake).
Most of the handshake stuff is now part of the RLPx code. It could be
exported or move to its own package because it is no longer entangled
with Server logic.
10 years ago
Felix Lange
dbdc5fd4b3
p2p: delete Server.Broadcast
10 years ago
Felix Lange
7efeb4bd96
p2p: bump maxAcceptConns and defaultDialTimout
...
On the test network, we've seen that it becomes harder to connect
if the queues are so short.
10 years ago
Felix Lange
d4f0a67323
p2p: drop connections with no matching protocols
10 years ago
Felix Lange
9c0f36c46d
p2p: use maxDialingConns instead of maxAcceptConns as dial limit
10 years ago
Felix Lange
914e57e49b
p2p: fix disconnect at capacity
...
With the introduction of static/trusted nodes, the peer count
can go above MaxPeers. Update the capacity check to handle this.
While here, decouple the trusted nodes check from the handshake
by passing a function instead.
10 years ago
Péter Szilágyi
4d5a719f25
cmd, eth, p2p: introduce pending peer cli arg, add tests
10 years ago
Péter Szilágyi
af93217775
p2p: reduce the concurrent handshakes to 10/10 in/out
10 years ago
Péter Szilágyi
2060bc8bac
p2p: fix dial throttling race condition
10 years ago
Péter Szilágyi
29fef349ef
p2p: fix a dialing race in the throttler
10 years ago
Péter Szilágyi
3953bf0031
p2p: limit the outbound dialing too
10 years ago
Felix Lange
3e2a928caa
p2p: stop dialing at half the maximum peer count
10 years ago
Péter Szilágyi
4accc187d5
eth, p2p: add trusted node list beside static list
10 years ago
Péter Szilágyi
54db54931e
p2p: add static node dialing test
10 years ago
Péter Szilágyi
e82ddd9198
p2p: correct a leftover trusted -> static
10 years ago
Péter Szilágyi
413ace37d3
eth, p2p: rename trusted nodes to static, drop inbound extra slots
10 years ago
Péter Szilágyi
701591b403
cmd, eth, p2p: fix review issues enumerated by Felix
10 years ago
Péter Szilágyi
1528dbc171
p2p: add trust check to handshake, test privileged connectivity
...
Conflicts:
p2p/server_test.go
10 years ago
Péter Szilágyi
14f32a0c3a
p2p: reduce the severity of a debug log
10 years ago
Péter Szilágyi
de0549fabb
cmd/geth, cmd/mist, cmd/utils, eth, p2p: support trusted peers
10 years ago
Felix Lange
fc747ef4a6
p2p/discover: new endpoint format
...
This commit changes the discovery protocol to use the new "v4" endpoint
format, which allows for separate UDP and TCP ports and makes it
possible to discover the UDP address after NAT.
10 years ago
Péter Szilágyi
8646365b42
cmd/bootnode, eth, p2p, p2p/discover: use a fancier db design
10 years ago
Péter Szilágyi
6def110c37
cmd/bootnode, eth, p2p, p2p/discover: clean up the seeder and mesh into eth.
10 years ago
Péter Szilágyi
5f735d6fce
cmd, eth, p2p, p2p/discover: init and clean up the seed cache
10 years ago
Felix Lange
635b66acdc
p2p: return zero node from Self if the server is not running
...
This helps with fixing the tests for cmd/geth to run without networking.
10 years ago
Felix Lange
5528abc795
p2p: fix the dial timer
...
The dial timer was not reset properly when the peer count reached
MaxPeers.
10 years ago
obscuren
474aa924ca
p2p: added limiter function to limit package broadcasting
10 years ago