Skip to content
Permalink
Browse files
[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 7062224c9e8a66a5a8acc405c43162f905158569
Showing 1 changed file with 0 additions and 1 deletion.
@@ -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);

0 comments on commit 7062224

Please sign in to comment.