aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/server_test.go
Commit message (Collapse)AuthorAgeFilesLines
* 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: fix a close race in the dial testPéter Szilágyi2015-06-101-1/+2
|
* p2p: new dialer, peer management without locksFelix Lange2015-05-251-314/+270
| | | | | | | | | | | | | | | | | | 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: delete Server.BroadcastFelix Lange2015-05-251-42/+0
|
* p2p: remove testlogFelix Lange2015-05-141-15/+0
|
* p2p: fix disconnect at capacityFelix Lange2015-05-081-7/+14
| | | | | | | 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.
* p2p: increase the handshake timeout in the testsPéter Szilágyi2015-05-071-2/+2
|
* cmd, eth, p2p: introduce pending peer cli arg, add testsPéter Szilágyi2015-05-071-0/+130
|
* fixed merge issueobscuren2015-05-071-3/+153
|\
| * eth, p2p: add trusted node list beside static listPéter Szilágyi2015-05-041-19/+17
| |
| * p2p: add static node dialing testPéter Szilágyi2015-05-041-0/+88
| |
| * eth, p2p: rename trusted nodes to static, drop inbound extra slotsPéter Szilágyi2015-05-011-5/+7
| |
| * cmd, eth, p2p: fix review issues enumerated by FelixPéter Szilágyi2015-04-301-1/+1
| |
| * p2p: add trust check to handshake, test privileged connectivityPéter Szilágyi2015-04-301-3/+65
| | | | | | | | | | Conflicts: p2p/server_test.go
| * cmd/geth, cmd/mist, cmd/utils, eth, p2p: support trusted peersPéter Szilágyi2015-04-301-1/+1
| |
* | p2p/discover: new endpoint formatFelix Lange2015-04-301-1/+1
|/ | | | | | 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.
* p2p: improve disconnect signaling at handshake timeFelix Lange2015-04-101-1/+57
| | | | | | | As of this commit, p2p will disconnect nodes directly after the encryption handshake if too many peer connections are active. Errors in the protocol handshake packet are now handled more politely by sending a disconnect packet before closing the connection.
* p2p: use package rlp to encode messagesFelix Lange2015-03-191-1/+1
| | | | | | | | | | Message encoding functions have been renamed to catch any uses. The switch to the new encoder can cause subtle incompatibilities. If there are any users outside of our tree, they will at least be alerted that there was a change. NewMsg no longer exists. The replacements for EncodeMsg are called Send and SendItems.
* p2p: msg.Payload contains list dataFelix Lange2015-03-041-1/+1
| | | | | | | | | With RLPx frames, the message code is contained in the frame and is no longer part of the encoded data. EncodeMsg, Msg.Decode have been updated to match. Code that decodes RLP directly from Msg.Payload will need to change.
* p2p: use RLPx frames for messagingFelix Lange2015-03-041-4/+9
|
* p2p: disable encryption handshakeFelix Lange2015-02-191-5/+7
| | | | | | The diff is a bit bigger than expected because the protocol handshake logic has moved out of Peer. This is necessary because the protocol handshake will have custom framing in the final protocol.
* cmd/mist, eth, javascript, p2p: use Node URLs for peer suggestionsFelix Lange2015-02-071-1/+1
|
* p2p: fixes for actual connectionsFelix Lange2015-02-071-0/+1
| | | | The unit test hooks were turned on 'in production'.
* p2p/discover: add node URL functions, distinguish TCP/UDP portsFelix Lange2015-02-071-2/+1
| | | | | The discovery RPC protocol does not yet distinguish TCP and UDP ports. But it can't hurt to do so in our internal model.
* p2p: integrate p2p/discoverFelix Lange2015-02-061-37/+48
| | | | | | | | | | | | 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
* Mergeobscuren2015-01-061-1/+1
|
* p2p: API cleanup and PoC 7 compatibilityFelix Lange2014-11-221-258/+130
| | | | | Whoa, one more big commit. I didn't manage to untangle the changes while working towards compatibility.
* p2p: disable failing Server tests for nowFelix Lange2014-11-221-0/+3
|
* p2p: rework protocol APIFelix Lange2014-11-221-63/+141
|
* initial commit of p2p packagezelig2014-10-231-0/+208