Client parser hangs on certain input

When parsing the EHLO response if the data arrives in specific chunks the client will "hang" and never emit 'idle'.

Here's an example that produces the bug: https://gist.github.com/dannycoates/6286979

It should print 'ok' and exit, but it does not.