mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 18:50:41 -07:00
This is related to PR #2407. Since the 64MB pending size is actually configurable, we should fail only if max_payload is greater than the configured max_pending. This is done in validateOptions() which covers both config file and direct options in embedded cases. The check in opts.go is reverted to max int32 since at this point we don't know if/what max_pending will be, so we simply check that it is not more than a int32. For the next minor release, we could have another change that imposes a lower limit to max_payload (regardless if max_pending is higher). Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
134 KiB
134 KiB