mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
aquatic_http: move request parsing into protocol crate
This commit is contained in:
parent
2521c89109
commit
95e25710dc
6 changed files with 43 additions and 30 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue