Increased output buffer size. Allow it to be defined at compile time.

This commit is contained in:
marian 2023-06-19 09:15:38 +03:00
parent b2b11e5e0d
commit 2d156f31ec
1 changed files with 9 additions and 1 deletions

View File

@ -104,7 +104,15 @@ namespace TelEngine {
#define DebugDef DebugNote
#define DebugMax DebugAll
#define OUT_BUFFER_SIZE 8192
#ifndef OUT_BUFFER_SIZE
#define OUT_BUFFER_SIZE 16384
#elif OUT_BUFFER_SIZE < 4096
#undef OUT_BUFFER_SIZE
#define OUT_BUFFER_SIZE 4096
#elif OUT_BUFFER_SIZE > 32768
#undef OUT_BUFFER_SIZE
#define OUT_BUFFER_SIZE 32768
#endif
#define OUT_HEADER_SIZE 112
// RefObject mutex pool array size