Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-36871] Unnecessary reset of length
- Also causes commands that span multiple frames to be corrupted
  • Loading branch information
stephenc committed Aug 2, 2016
1 parent 707bfe8 commit 7062224
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -141,7 +141,6 @@ public final synchronized void receive(@Nonnull ByteBuffer data) throws IOExcept
while (data.hasRemaining() || readState == READ_STATE_COMMAND_READY) {
switch (readState) {
case READ_STATE_NEED_HEADER:
readCommandSizes[readCommandIndex] = 0;
if (data.remaining() >= 2) {
// jump straight to state 2
readFrameHeader = ChunkHeader.read(data);
Expand Down

0 comments on commit 7062224

Please sign in to comment.