-
Notifications
You must be signed in to change notification settings - Fork 837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
increase the default max message size for p2p messages #4120
increase the default max message size for p2p messages #4120
Conversation
Signed-off-by: Stefan <stefan.pingel@consensys.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm surprised this didn't impact any test code, that probably means we don't have this covered as well as we should. How did we end up at doubling the value?
Signed-off-by: Stefan <stefan.pingel@consensys.net>
…n the RLPx layer (16.7MB) Signed-off-by: Stefan <stefan.pingel@consensys.net>
Signed-off-by: Stefan <stefan.pingel@consensys.net>
Currently there is a 10MB limit for incoming messages in EthProtocolManager. When a message exceeds 10MB we are ignoring the message and disconnect the peer that sent the message. There is no hard limit for messages on the eth layer in the devp2p spec. |
do we still have a test for the 16.7Mb limit? is that at the Rlpx layer? |
@@ -202,28 +202,9 @@ public void disconnectOnWrongChainId() { | |||
} | |||
} | |||
|
|||
@Test | |||
public void disconnectOnVeryLargeMessage() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we still have a test for the 16Mb limit? is that at the Rlpx layer?
The RLPx message size is tested in test shouldThrowExceptionWhenFramingMessageTooLong in class FramerTest |
The current limit means that we are disconnecting useful peers during syncing.
Signed-off-by: Stefan stefan.pingel@consensys.net
Addresses: #4119