mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 14:50:57 +01:00
PeerSocketHandler: bugfix for incomplete message headers at the end of
the buffer
This commit is contained in:
parent
e5b52fb73b
commit
64e09452f4
1 changed files with 1 additions and 0 deletions
|
@ -140,6 +140,7 @@ public abstract class PeerSocketHandler extends AbstractTimeoutHandler implement
|
|||
processMessage(serializer.deserializePayload(header, ByteBuffer.wrap(largeReadBuffer)));
|
||||
largeReadBuffer = null;
|
||||
header = null;
|
||||
firstMessage = false;
|
||||
} else // ...or just returning if we don't have enough bytes yet
|
||||
return buff.position();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue