users@grizzly.java.net

Re: ProtocolParser implementation II

From: Ken--_at_newsgroupstats.hk <dragonken_at_gmail.com>
Date: Tue, 13 May 2008 23:50:28 -0700 (PDT)

I dig it out myself, the default value of partial should not be 'true'.
Please kindly comment my code.


Ken--_at_newsgroupstats.hk wrote:
>
> Well, I gone another problem. I tried Hyper Terminal to connect to my
> server. Send some bytes by it's 'Send Text File' function then disconnect.
> The cpu loading of my server will then up to 100%. After investigation, I
> found that the selectorThread will keep calling
> MyProtocolParser.isExpectingMoreData() and it always return true. So, my
> problem is:
>
> 1. how to implement isExpectingMoreData() so that it will return false
> whenever client disconnect?
> 2. why selectorThread keep calling isExpectingMoreData()?
>
> Regards,
> Ken
>

-- 
View this message in context: http://www.nabble.com/ProtocolParser-implementation-II-tp17152654p17224482.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.