From 618a147fbda63d301dae0e7d802db66d478cd0c5 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 29 Apr 2021 19:26:05 +0000 Subject: [PATCH] use bigegr buffer --- src/autocontext/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/autocontext/context.go b/src/autocontext/context.go index 7bea004..633e19e 100644 --- a/src/autocontext/context.go +++ b/src/autocontext/context.go @@ -63,7 +63,7 @@ func Clean(r *http.Request) { // getRequestAddress this function extracts *http.Request address from the go-lang stacktrace string. func getRequestAddress() (string, error) { - trace := make([]byte, 2048) + trace := make([]byte, 10240) count := runtime.Stack(trace, false) //fmt.Printf("Stack of %d bytes: %s\n", count, trace) match := regexServeHTTP.FindStringSubmatch(string(trace[0:count]))