Skip to content

Commit

Permalink
[p2p] Increment the max handshake message size. (#3183)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolestar authored Jan 28, 2022
1 parent 135f00b commit 4190419
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ use std::{
use unsigned_varint::codec::UviBytes;

/// Maximum allowed size of the two handshake messages, in bytes.
const MAX_HANDSHAKE_SIZE: usize = 2048;
const MAX_HANDSHAKE_SIZE: usize = 20480;

/// Upgrade that accepts a substream, sends back a status message, then becomes a unidirectional
/// stream of messages.
Expand Down

0 comments on commit 4190419

Please sign in to comment.