readCoilsAsync要求讀取數量少于實際讀到的數量時報錯
zhizhico opened this issue · comments
zhizhico commented
sender.readCoilsAsync(startAddress, quantityOfCoils);
要求讀取數量少于實際讀到的數量時報錯如下:
java.lang.IndexOutOfBoundsException: readerIndex(2) + length(9) exceeds writerIndex(3): UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 2, widx: 3, cap: 11)