Hi Andy, 2008/1/14 张园 <[EMAIL PROTECTED]>: > My dear friends, > > I got a question when I read the source code,how is the SocketIoProcessor > class dealing the situation that the buf is smaller than the data expected > in the SocketChannel?
If the allocated read buffer is smaller than the data to be read, SocketIoProcessor will read it again in the next read loop, with the increased read buffer size. It's exactly what the source code you pasted is doing. Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
