This commit is contained in:
@@ -53,6 +53,7 @@ public final class SncpRequest extends Request<SncpContext> {
|
|||||||
@Override
|
@Override
|
||||||
protected int readHeader(ByteBuffer buffer) {
|
protected int readHeader(ByteBuffer buffer) {
|
||||||
if (buffer.remaining() < HEADER_SIZE) {
|
if (buffer.remaining() < HEADER_SIZE) {
|
||||||
|
if (buffer.hasRemaining()) buffer.get(new byte[buffer.remaining()]);
|
||||||
this.ping = true;
|
this.ping = true;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user