diff --git a/pkg/types/config.go b/pkg/types/config.go index 86144daf..55e14902 100644 --- a/pkg/types/config.go +++ b/pkg/types/config.go @@ -161,6 +161,9 @@ func (c Configuration) Validate() error { if c.RequestBatchMaxCount > c.RequestBatchMaxBytes { return errors.New("RequestBatchMaxCount is bigger than RequestBatchMaxBytes") } + if c.RequestMaxBytes > c.RequestBatchMaxBytes { + return errors.New("RequestMaxBytes is bigger than RequestBatchMaxBytes") + } if c.RequestForwardTimeout > c.RequestComplainTimeout { return errors.New("RequestForwardTimeout is bigger than RequestComplainTimeout") }