Merge pull request #2407 from jnmoyne/fix-max-max-payload-value

Due to internal limits the actual maximum payload size is 64Mb. Beyon…
This commit is contained in:
Derek Collison
2021-08-04 08:07:44 -07:00
committed by GitHub

View File

@@ -841,7 +841,7 @@ func (o *Options) processConfigFileLine(k string, v interface{}, errors *[]error
}
o.MaxControlLine = int32(v.(int64))
case "max_payload":
if v.(int64) > 1<<31-1 {
if v.(int64) > 64*1024*1024 {
err := &configErr{tk, fmt.Sprintf("%s value is too big", k)}
*errors = append(*errors, err)
return