This is an automated email from the ASF dual-hosted git repository. cmcfarlen pushed a commit to branch 10.0.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 2c5896b8bb78a40947985a3fdbaaa39058775aed Author: Masaori Koshiba <[email protected]> AuthorDate: Thu Feb 27 12:17:44 2025 +0900 traffic_logcat: Bump buffer size (#12054) (cherry picked from commit 94a72272fcfe291ad5710b44b1c3069c94c27581) --- src/traffic_logcat/logcat.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/traffic_logcat/logcat.cc b/src/traffic_logcat/logcat.cc index 15d2ef3f58..573dd53551 100644 --- a/src/traffic_logcat/logcat.cc +++ b/src/traffic_logcat/logcat.cc @@ -28,7 +28,7 @@ #include "tscore/runroot.h" #define PROGRAM_NAME "traffic_logcat" -#define MAX_LOGBUFFER_SIZE 65536 +#define MAX_LOGBUFFER_SIZE 524288 // 512KB #include <poll.h> @@ -168,7 +168,7 @@ process_file(int in_fd, int out_fd) uint32_t byte_count = header->byte_count; if (byte_count > sizeof(buffer)) { - fprintf(stderr, "Buffer too large!\n"); + fprintf(stderr, "Buffer too large! byte_count=%d\n", byte_count); return 1; } buffer_bytes = byte_count - header_size;
