On 2/12/08 11:19 PM, "Jeanfrancois Arcand" <Jeanfrancois.Arcand_at_Sun.COM>
wrote:
> Hi Erick,
>
> Erik Svensson wrote:
>> Howdy all,
>>
>> I'm now running tests with Grizzly as a server using our own ProtocolParser.
>> Right now I have a client that connects to Grizzly, sends 10k messages,
>> waits about 10 seconds and then disconnects.
>> Problem is that my protocol parser only gets about 120 (the number varies
>> between runs) messages. If I fire up the client again the protocol parser
>> only receives a handful of messages.
>> I have no idea where the rest of the data is going. Using the yourkit
>> profiler I can't see anything strange at all.
>
> Do you have any test case we can take a look at?
I'll try to extract the server part from the other code.
> Are you sure your are
> registering back the SelectionKey after reading bytes (stupid question,
> but guessing).
Eh? I've written a protocol parser as outlined on Scotts blog (now updated I
notice). There is no registering of SelectionKeys there.
cheers
Erik Svensson, SIX AB