It was my understanding that the protocol framer would accumulate data until it is consumed, which I would do by returning a non-zero value from the framer.parseInput()
block or by calling deliverInputNoCopy()
.
However it does not seem to be the case, at least not across severals calls to handleInput()
. Per my testing, I am unable to parse the needed amount of data across several calls to handleInput()
.
Is it correct that the non-consumed data is dropped between calls to handleInput()
and our implementations need to take care to accumulate partial data across several handleInput()
calls?
And if it is correct, I'm also quite confused by the TicTacToe sample code because it does not seem to worry about receiving a partial header. Is this a bug in the sample code?