This is an automated email from the ASF dual-hosted git repository.
masaori pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 94a72272fc traffic_logcat: Bump buffer size (#12054)
94a72272fc is described below
commit 94a72272fcfe291ad5710b44b1c3069c94c27581
Author: Masaori Koshiba <[email protected]>
AuthorDate: Thu Feb 27 12:17:44 2025 +0900
traffic_logcat: Bump buffer size (#12054)
---
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 7cabeb96ed..95857696b7 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;