aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/peer_error.go
Commit message (Collapse)AuthorAgeFilesLines
* p2p: fix value of DiscSubprotocolErrorFelix Lange2015-08-121-1/+1
| | | | We had the wrong value (12) since forever.
* all: fix license headers one more timeFelix Lange2015-07-241-1/+1
| | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-4/+4
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* all: update license informationFelix Lange2015-07-071-0/+16
|
* p2p: new dialer, peer management without locksFelix Lange2015-05-251-44/+12
| | | | | | | | | | | | | | | | | | 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.
* p2p: make DiscReason bigger than byteFelix Lange2015-04-171-1/+1
| | | | | We decode into [1]DiscReason in a few places. That doesn't work anymore because package rlp no longer accepts RLP lists for byte arrays.
* p2p: fix Peer shutdown deadlocksFelix Lange2015-04-101-6/+4
| | | | | | | | | | There were multiple synchronization issues in the disconnect handling, all caused by the odd special-casing of Peer.readLoop errors. Remove the special handling of read errors and make readLoop part of the Peer WaitGroup. Thanks to @Gustav-Simonsson for pointing at arrows in a diagram and playing rubber-duck.
* p2p: fixes for actual connectionsFelix Lange2015-02-071-1/+1
| | | | The unit test hooks were turned on 'in production'.
* p2p: integrate p2p/discoverFelix Lange2015-02-061-29/+27
| | | | | | | | | | | | Overview of changes: - ClientIdentity has been removed, use discover.NodeID - Server now requires a private key to be set (instead of public key) - Server performs the encryption handshake before launching Peer - Dial logic takes peers from discover table - Encryption handshake code has been cleaned up a bit - baseProtocol is gone because we don't exchange peers anymore - Some parts of baseProtocol have moved into Peer instead
* p2p: use an error type for disconnect requestsFelix Lange2014-12-151-0/+9
| | | | Test-tastic.
* p2p: API cleanup and PoC 7 compatibilityFelix Lange2014-11-221-50/+100
| | | | | Whoa, one more big commit. I didn't manage to untangle the changes while working towards compatibility.
* p2p: rework protocol APIFelix Lange2014-11-221-6/+4
|
* initial commit of p2p packagezelig2014-10-231-0/+76