fix(client): don't read extra bytes on idle connections

This commit is contained in:
Sean McArthur
2017-10-27 10:26:59 -07:00
parent f7532b71d1
commit 7c4b814e6b
4 changed files with 77 additions and 17 deletions

View File

@@ -149,6 +149,7 @@ pub trait Http1Transaction {
fn encode(head: MessageHead<Self::Outgoing>, has_body: bool, method: &mut Option<Method>, dst: &mut Vec<u8>) -> h1::Encoder;
fn should_error_on_parse_eof() -> bool;
fn should_read_first() -> bool;
}
pub type ParseResult<T> = ::Result<Option<(MessageHead<T>, usize)>>;