If input comes in which doesn't match anything, keep it around until more input comes in then try again with the combined buffer.
Currently we sometimes just get half the input and match against that, which is wrong. It's a timing issue presumably, and luckily it doesn't seem to happen often, but it's not good having it sensitive to timing.
If input comes in which doesn't match anything, keep it around until more input comes in then try again with the combined buffer.
Currently we sometimes just get half the input and match against that, which is wrong. It's a timing issue presumably, and luckily it doesn't seem to happen often, but it's not good having it sensitive to timing.