From b08a7b9a66d04f21241e8d1b75e0c6ff9ae69d8c Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 1 Jul 2021 16:31:35 +0200 Subject: [PATCH] stream: update memcaps in code to match config --- src/stream-tcp.c | 4 ++-- suricata.yaml.in | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stream-tcp.c b/src/stream-tcp.c index 9ed3cd8b24..a01365943b 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -80,8 +80,8 @@ //#define DEBUG #define STREAMTCP_DEFAULT_PREALLOC 2048 -#define STREAMTCP_DEFAULT_MEMCAP (32 * 1024 * 1024) /* 32mb */ -#define STREAMTCP_DEFAULT_REASSEMBLY_MEMCAP (64 * 1024 * 1024) /* 64mb */ +#define STREAMTCP_DEFAULT_MEMCAP (64 * 1024 * 1024) /* 64mb */ +#define STREAMTCP_DEFAULT_REASSEMBLY_MEMCAP (256 * 1024 * 1024) /* 256mb */ #define STREAMTCP_DEFAULT_TOSERVER_CHUNK_SIZE 2560 #define STREAMTCP_DEFAULT_TOCLIENT_CHUNK_SIZE 2560 #define STREAMTCP_DEFAULT_MAX_SYNACK_QUEUED 5 diff --git a/suricata.yaml.in b/suricata.yaml.in index ba1a983b38..a6c0fe22d1 100644 --- a/suricata.yaml.in +++ b/suricata.yaml.in @@ -1256,7 +1256,7 @@ flow-timeouts: # engine is configured. # # stream: -# memcap: 32mb # Can be specified in kb, mb, gb. Just a +# memcap: 64mb # Can be specified in kb, mb, gb. Just a # # number indicates it's in bytes. # checksum-validation: yes # To validate the checksum of received # # packet. If csum validation is specified as @@ -1278,7 +1278,7 @@ flow-timeouts: # # the bypass. # # reassembly: -# memcap: 64mb # Can be specified in kb, mb, gb. Just a number +# memcap: 256mb # Can be specified in kb, mb, gb. Just a number # # indicates it's in bytes. # depth: 1mb # Can be specified in kb, mb, gb. Just a number # # indicates it's in bytes. -- 2.47.2