[
https://issues.apache.org/jira/browse/ZOOKEEPER-4182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17291519#comment-17291519
]
Mate Szalay-Beko commented on ZOOKEEPER-4182:
---------------------------------------------
hello [~horizonzy]!
I haven't realized that ZOOKEEPER-4221 duplicates this older Jira, and
ZOOKEEPER-4221 just got merged.
I'm sorry if you would feel that we wasted the energy you put to this issue. I
hope this doesn't prevent you from further contributions...
Thanks for your time again!!
> Enhance message when packet's length over limit.
> -------------------------------------------------
>
> Key: ZOOKEEPER-4182
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4182
> Project: ZooKeeper
> Issue Type: Improvement
> Components: java client
> Affects Versions: 3.6.2
> Reporter: 赵延
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> {code:java}
> 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);
> }
> {code}
>
> The message can append `packetLen` info.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)