About the size of netty's mqttdecoder acceptable messages exceeding 16kb

background: mqtt protocol development using netty integrated moquette framework
problem: when the client sends a message that exceeds the size of the 16kb to the server broker, the mqttDecoder has an IndexOutOfBoundsException: pooledUnsafeDirectByteBuf (ridx:9525,widx:16384,cap:16384) .slice (9525Mae 9525) exception.
try to solve the problem: changing the value of io.netty.threadLocalDirectBufferSize and io.netty.maxThreadLocalCharBufferSize to 1024024 will not solve the problem

Jul.11,2021
Menu