aquatic_http: move request parsing into protocol crate

This commit is contained in:
Joakim Frostegård 2020-07-20 20:13:56 +02:00
parent 2521c89109
commit 95e25710dc
6 changed files with 43 additions and 30 deletions

View file

@ -227,8 +227,8 @@ pub fn handle_connection_read_event(
// Stop reading data (defer to later events)
break;
},
Err(RequestReadError::Invalid(err)) => {
info!("error reading request (invalid): {}", err);
Err(RequestReadError::Parse(err)) => {
info!("error reading request (invalid): {:#?}", err);
let meta = ConnectionMeta {
worker_index: socket_worker_index,
@ -253,11 +253,6 @@ pub fn handle_connection_read_event(
break
},
Err(RequestReadError::Parse(err)) => {
::log::info!("request httparse error: {}", err);
break
},
Err(RequestReadError::Io(err)) => {
::log::info!("error reading request (io): {}", err);