- Sep 04, 2017
-
-
Martin Holst Swende authored
Using a Timer over Ticker seems to be a lot better, though I cannot fully account for why that it behaves so (since Ticker should be more bursty, but not necessarily more active over time, but that may depend on how long window it uses to decide on when to tick next)
-
- Feb 28, 2017
-
-
Felix Lange authored
-
- Feb 23, 2017
-
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
- Feb 19, 2016
-
-
Felix Lange authored
-
- Oct 28, 2015
-
-
Péter Szilágyi authored
-
- Jul 23, 2015
-
-
Felix Lange authored
I forgot to update one instance of "go-ethereum" in commit 3f047be5.
-
- Jul 22, 2015
-
-
Felix Lange authored
All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
-
- Jul 07, 2015
-
-
Felix Lange authored
-
- Jun 26, 2015
-
-
Péter Szilágyi authored
-
- Jun 15, 2015
-
-
Felix Lange authored
-
Felix Lange authored
As of this commit, we no longer rely on the protocol handler to report write errors in a timely fashion. When a write fails, shutdown is initiated immediately and no new writes can start. This will also prevent new writes from starting after Server.Stop has been called.
-
- May 24, 2015
-
-
Felix Lange authored
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.
-
Felix Lange authored
The previous limit was 10MB which is unacceptable for all kinds of reasons, the most important one being that we don't want to allow the remote side to make us allocate 10MB at handshake time.
-
Felix Lange authored
-
- May 14, 2015
-
-
Felix Lange authored
The returned reason is currently not used except for the log message. This change makes the log messages a bit more useful. The handshake code also returns the remote reason.
-
- May 08, 2015
-
-
Felix Lange authored
-
- May 06, 2015
-
-
Felix Lange authored
-
- Apr 30, 2015
-
-
Felix Lange authored
-
- Apr 29, 2015
-
-
Jeffrey Wilcke authored
p2p.Msg.ReceivedAt can be used for determining block propagation from begining to end.
-
- Apr 13, 2015
-
-
Felix Lange authored
Peer.readLoop will only terminate if the connection is closed. Fix the hang by closing the connection before waiting for readLoop to terminate. This also removes the british disconnect procedure where we're waiting for the remote end to close the connection. I have confirmed with @subtly that cpp-ethereum doesn't adhere to it either.
-
- Apr 10, 2015
-
-
Felix Lange authored
netWrapper already sets a read deadline in ReadMsg.
-
Felix Lange authored
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.
-
- Mar 19, 2015
-
-
Felix Lange authored
This helps a lot with debugging.
-
Felix Lange authored
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.
-
- Mar 04, 2015
-
-
Felix Lange authored
They got lost in the transition to rlpxFrameRW.
-
Felix Lange authored
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.
-
Felix Lange authored
-
- Feb 19, 2015
-
-
Felix Lange authored
This should prevent connection drops.
-
Felix Lange authored
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.
-
- Feb 13, 2015
-
-
Felix Lange authored
For compatibility with cpp-ethereum
-
Felix Lange authored
-
Felix Lange authored
There are now two deadlines, frameReadTimeout and payloadReadTimeout. The frame timeout is longer and allows for connections that are idle. The message timeout is still short and ensures that we don't get stuck in the middle of a message.
-
- Feb 06, 2015
-
-
Felix Lange authored
The unit test hooks were turned on 'in production'.
-
- Feb 05, 2015
-
-
Felix Lange authored
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
-
Viktor Trón authored
-
Viktor Trón authored
-
Viktor Trón authored
-
Viktor Trón authored
- add const length params for handshake messages - add length check to fail early - add debug logs to help interop testing (!ABSOLUTELY SHOULD BE DELETED LATER) - wrap connection read/writes in error check - add cryptoReady channel in peer to signal when secure session setup is finished - wait for cryptoReady or timeout in TestPeersHandshake
-
Viktor Trón authored
-