From b3d5a049ea5554bf9917847a065ae8698e1649e1 Mon Sep 17 00:00:00 2001 From: rustaceanrob Date: Tue, 17 Sep 2024 07:33:00 -1000 Subject: [PATCH] fix(network): increase max handshake buffer --- src/peers/peer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peers/peer.rs b/src/peers/peer.rs index a52e7b5..bb7bb5b 100644 --- a/src/peers/peer.rs +++ b/src/peers/peer.rs @@ -39,7 +39,7 @@ const MESSAGE_TIMEOUT: u64 = 2; const HANDSHAKE_TIMEOUT: u64 = 2; // sec min hour const TWO_HOUR: u64 = 60 * 60 * 2; -const MAX_RESPONSE: [u8; 4096] = [0; 4096]; +const MAX_RESPONSE: [u8; 4111] = [0; 4111]; type MutexMessageGenerator = Mutex>;