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

@@ -136,6 +136,10 @@ impl Http1Transaction for ServerTransaction {
fn should_error_on_parse_eof() -> bool {
false
}
fn should_read_first() -> bool {
true
}
}
impl ServerTransaction {
@@ -289,6 +293,10 @@ impl Http1Transaction for ClientTransaction {
fn should_error_on_parse_eof() -> bool {
true
}
fn should_read_first() -> bool {
false
}
}
impl ClientTransaction {