Expected behavior
expected to process PING frames to check the client is still active
Actual behavior
when empty frame (just with \n symbol) is received StompSubframeDecoder.decode threws IndexOutOfBoundsException
private static void skipControlCharacters(ByteBuf buffer) {
byte b;
for (;;) {
b = buffer.readByte();
if (b != StompConstants.CR && b != StompConstants.LF) {
buffer.readerIndex(buffer.readerIndex() - 1);
break;
}
}
}
function skipControlCharacters has no readable bytes check of the buffer
Steps to reproduce
build a STOMP server using netty STOMP handlers
Netty version
4.1.52
Expected behavior
expected to process
PINGframes to check the client is still activeActual behavior
when empty frame (just with \n symbol) is received
StompSubframeDecoder.decodethrewsIndexOutOfBoundsExceptionfunction
skipControlCharactershas no readable bytes check of thebufferSteps to reproduce
build a STOMP server using netty STOMP handlers
Netty version
4.1.52