From f2068772328b95053db8c200e7fe93044d73ff21 Mon Sep 17 00:00:00 2001 From: Aveen Ismail Date: Fri, 23 Aug 2024 14:39:07 +0200 Subject: [PATCH] Increase message buffer size --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.go b/api.go index e966742..80ce129 100644 --- a/api.go +++ b/api.go @@ -165,7 +165,7 @@ func apiHandler(w http.ResponseWriter, r *http.Request, serial string) { var n int var err error const min_len = 3 // The minimum request is CMD (1 byte) + LEN (2 bytes) - const max_len = 2048 + 3 // Allow 3 bytes more than the HSM can handle before returning http.StatusBadRequest + const max_len = 3136 + 3 // Allow 3 bytes more than the HSM can handle before returning http.StatusBadRequest cid := r.Header.Get("X-Request-ID") clog := log.WithFields(log.Fields{