Skip to content

Commit

Permalink
Increase message buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Aug 23, 2024
1 parent 8e251bd commit f206877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit f206877

Please sign in to comment.