You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ro...@apache.org on 2021/09/14 20:38:39 UTC

[trafficcontrol] branch master updated: Increasing astats string buffer size. We have seen astats config ip lists going beyond the existing 1k limit and being truncated. There is a proper rewrite on the way but this temporary fix can suffice for a while (#6212)

This is an automated email from the ASF dual-hosted git repository.

rob pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new ed8ac2f  Increasing astats string buffer size. We have seen astats config ip lists going beyond the existing 1k limit and being truncated. There is a proper rewrite on the way but this temporary fix can suffice for a while (#6212)
ed8ac2f is described below

commit ed8ac2fb4295353be4b9c0b25146cc444fd2a799
Author: Evan Zelkowitz <ez...@apache.org>
AuthorDate: Tue Sep 14 14:38:27 2021 -0600

    Increasing astats string buffer size. We have seen astats config ip lists going beyond the existing 1k limit and being truncated. There is a proper rewrite on the way but this temporary fix can suffice for a while (#6212)
---
 traffic_server/plugins/astats_over_http/astats_over_http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/traffic_server/plugins/astats_over_http/astats_over_http.c b/traffic_server/plugins/astats_over_http/astats_over_http.c
index 1ac5dc6..df3adec 100644
--- a/traffic_server/plugins/astats_over_http/astats_over_http.c
+++ b/traffic_server/plugins/astats_over_http/astats_over_http.c
@@ -65,7 +65,7 @@ static int config_handler(TSCont cont, TSEvent event, void *edata);
 static config_t* get_config(TSCont cont);
 static config_holder_t* new_config_holder(const char* path);
 
-#define STR_BUFFER_SIZE 	1024
+#define STR_BUFFER_SIZE 	65536
 
 #define SYSTEM_RECORD_TYPE 		(0x100)
 #define DEFAULT_RECORD_TYPES	(SYSTEM_RECORD_TYPE | TS_RECORDTYPE_PROCESS | TS_RECORDTYPE_PLUGIN)