proxy progress
This commit is contained in:
parent
37243cf8a7
commit
12a9d64e31
|
@ -159,7 +159,7 @@ public class BinaryProtocolServer implements BinaryProtocolCommands {
|
||||||
byte[] packet = new byte[length];
|
byte[] packet = new byte[length];
|
||||||
int size = in.read(packet);
|
int size = in.read(packet);
|
||||||
if (size != packet.length)
|
if (size != packet.length)
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException(size + " promised but " + packet.length + " arrived");
|
||||||
int crc = in.readInt();
|
int crc = in.readInt();
|
||||||
if (crc != IoHelper.getCrc32(packet))
|
if (crc != IoHelper.getCrc32(packet))
|
||||||
throw new IllegalStateException("CRC mismatch");
|
throw new IllegalStateException("CRC mismatch");
|
||||||
|
|
Loading…
Reference in New Issue