mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-16 11:04:42 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user