Skip to content

Commit

Permalink
"Add warning message for CorruptedFrameException (issue #1870)" (#1897)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlinhnguyen authored Oct 12, 2022
1 parent 8d601cd commit b2f80d2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ public static int readLength(ByteBuf byteBuf, int maxLength) {

int len = byteBuf.readInt();
if (len > maxLength) {
throw new CorruptedFrameException("Message size exceed limit: " + len);
throw new CorruptedFrameException(
"Message size exceed limit: "
+ len
+ "\nConsider increasing the 'max_response_size' in 'config.properties' to fix.");
}
if (len > byteBuf.readableBytes()) {
return BUFFER_UNDER_RUN;
Expand Down

0 comments on commit b2f80d2

Please sign in to comment.