I have read couple posts what makes the TCP packet gets fragmented. It seems to me it depends upon the MTU size - the request that exceeds the limit gets fragmented.
Here is my question regarding to Netty.
Assume that MTU size is 1500, and the request is 1000 bytes.
Then, what the server's messageReceived()
method receives is always exactly 1000 bytes in one shot or any chance it gets fragmented?
I want to make sure the message that server receives is not fragmented.
If you think I am not understanding TCP or Netty well enough, then please point me to what I need to study?
I figured out my question is very similar to this. Dealing with fragmentation in Netty
What I want to double check is whether or not the fragmentation occurs even the request size is less than MTU limit. If yes, then I need the ReplayingDecoder.
Your suggestion is greatly appreciated.