fix(conn): always read till blocked when parsing

Closes #1111
This commit is contained in:
Sean McArthur
2017-04-05 15:21:24 -07:00
parent 6e55fbe75d
commit 633b37df11
3 changed files with 45 additions and 24 deletions

View File

@@ -745,7 +745,6 @@ mod tests {
let mut conn = Conn::<_, http::Chunk, ServerTransaction>::new(io, Default::default());
conn.state.idle();
assert!(conn.poll().unwrap().is_not_ready());
match conn.poll().unwrap() {
Async::Ready(Some(Frame::Error { .. })) => {},
other => panic!("frame is not Error: {:?}", other)