Commit 5a6ddbdf authored by istae's avatar istae Committed by GitHub

chore: increase targetMaxLength (#2406)

parent db09d74b
...@@ -26,7 +26,7 @@ import ( ...@@ -26,7 +26,7 @@ import (
const ( const (
writeDeadline = 4 * time.Second // write deadline. should be smaller than the shutdown timeout on api close writeDeadline = 4 * time.Second // write deadline. should be smaller than the shutdown timeout on api close
readDeadline = 4 * time.Second // read deadline. should be smaller than the shutdown timeout on api close readDeadline = 4 * time.Second // read deadline. should be smaller than the shutdown timeout on api close
targetMaxLength = 2 // max target length in bytes, in order to prevent grieving by excess computation targetMaxLength = 3 // max target length in bytes, in order to prevent grieving by excess computation
) )
func (s *server) pssPostHandler(w http.ResponseWriter, r *http.Request) { func (s *server) pssPostHandler(w http.ResponseWriter, r *http.Request) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment