You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by 张园 <zh...@neusoft.com> on 2008/01/16 06:30:27 UTC

答复: can anyone do me a favour

Hi Trustin,
Sorry to bother you ,I got the reason ,it's my misunderstanding.

Best  regards,
Andy (张园)
Mobile Internet Division
-------------------------------------------------------
Address: Building A9,Neusoft Park,No.2 Xinxiu Street,Hunnan 
         Industrial Park ,Shenyang 110179, PRC
    Tel: +86 024 83669709 13998390079
  Email:zhang-yuan@neusoft.com
Website: http://www.neusoft.com 


-----邮件原件-----
发件人: Trustin Lee [mailto:trustin@gmail.com] 
发送时间: 2008年1月15日 15:09
收件人: dev@mina.apache.org
主题: Re: can anyone do me a favour

Hi Andy,

2008/1/14 张园 <zh...@neusoft.com>:
> 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



----------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Group Ltd., its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful. If you have received this communication in error, please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. 
-----------------------------------------------------------------------------------------------