Fix TcpInput stream parsing.

Each connection requires its own stream parser since they run in parallel.