]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: update memcaps in code to match config
authorVictor Julien <victor@inliniac.net>
Thu, 1 Jul 2021 14:31:35 +0000 (16:31 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 1 Jul 2021 14:59:49 +0000 (16:59 +0200)
src/stream-tcp.c
suricata.yaml.in

index 9ed3cd8b242bf59a9f0c39765fdade88a7cf25ee..a01365943b85a1599a2b42864f7929d7b493128a 100644 (file)
@@ -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
index ba1a983b3868c2af4dd8ac165e7818c66d6cbe3c..a6c0fe22d1d2e97584c33433de4730b50af0de7e 100644 (file)
@@ -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.