Partial message problem using nio socket
My sending messages may be larger than the default socket buffer size. So there may be several read operations in order to receive a complete message. When the end condition is
The exception of partial message still exists. Is any good way to solve this problem. Thanks
n = socket.read(rbuf);
if(n==0) || (n==-1)
I use multiple processes running on one machine. Each process uses a nio socket. Is this a possible factor to cause the partial messages?
I need your help