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-tp17152654p17224253.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.