Fix a bug in the new iproto support.

A just-connected session would get stuck not reading input
if only a part of request was received.
Merge branch 'stable'