Skip to content

MessageExtEncoder#encode(MessageExtBrokerInner) 计算消息长度是否超过最大允许的消息长度,是不是有问题? #9169

Answered by coolmoon101
coolmoon101 asked this question in Q&A
Discussion options

You must be logged in to vote

已经找到问题:propertiesLength 这里已经加上了 crc32ReservedLength 的长度
final int propertiesLength = (propertiesData == null ? 0 : propertiesData.length)
+ (needAppendLastPropertySeparator ? 1 : 0) + crc32ReservedLength;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by coolmoon101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant