Hi everyone,

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


Java Code:
n = socket.read(rbuf);	
if(n==0) || (n==-1) 
   break;
The exception of partial message still exists. Is any good way to solve this problem. Thanks

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