> Do I have to use
> 
> ((SocketSessionConfig) connector.getSessionConfig()).setTcpNoDelay(false)
> 
> to ensure that I will receive only one complete message given that I
> implement MessageDecoder correctly, but I feel like setting tcpnodelay
> false
> will negatively affect the performance. 

You need to treat the incoming data as a stream of bytes, not discrete
messages, because even if you send out discrete messages from one side, the
network infrastructure (routers) may fragment your messages along the way.


Reply via email to