francisoliverlee commented on issue #7758: URL: https://github.com/apache/rocketmq/issues/7758#issuecomment-1902566721
## Client's config key=maxMessageSize checked in Validators.checkMessage(msg, this.defaultMQProducer); ```java if (msg.getBody().length > defaultMQProducer.getMaxMessageSize()) { throw new MQClientException(ResponseCode.MESSAGE_ILLEGAL, "the message body size over max value, MAX: " + defaultMQProducer.getMaxMessageSize()); } ``` - sync send one message, do body size check - async send one message, do body size check - sync send batch message, do 2 checks - do every message body check - do all message's body size check - async send one message, do 2 checks - do every message body check - do all message's body size check ## Proxy check message body size  ## Broker not check message size  ## Store's config key=maxMessageSize checked in MessageExtEncoder.encode() WITH 2 checks  - body check - header + body check > at 5.1.4 delay check message is about (header + body), but send to broke is only body. is also a problem. i found some size checks here but no delay message check, can you pls give out the code? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org