Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
3.6.2
-
None
Description
void readLength() throws IOException { int len = incomingBuffer.getInt(); if (len < 0 || len >= packetLen) { throw new IOException("Packet len " + len + " is out of range!"); } incomingBuffer = ByteBuffer.allocate(len); }
The message can append `packetLen` info.
Attachments
Issue Links
- is duplicated by
-
ZOOKEEPER-4221 Improve the error message when message goes above jute.maxbufer size
- Closed
- links to