NIFI-464 This closes #45 (minor revision - replace hard coded constant

with length)
This commit is contained in:
Tony Kurc 2015-03-25 21:52:23 -04:00
parent a5e140f107
commit 3a27c378cc
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public class ProtocolHandshake {
final DataOutputStream dos = new DataOutputStream(out);
try {
final byte[] magicHeaderBuffer = new byte[4];
final byte[] magicHeaderBuffer = new byte[MAGIC_HEADER.length];
dis.readFully(magicHeaderBuffer);
receiveVersionNegotiation(versionNegotiator, dis, dos);