mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_http: glommio: deallocate request buffer after successful parse
This commit is contained in:
parent
c9233726ab
commit
9bea7c0898
1 changed files with 2 additions and 0 deletions
|
|
@ -213,6 +213,8 @@ impl Connection {
|
|||
Ok(request) => {
|
||||
::log::debug!("received request: {:?}", request);
|
||||
|
||||
self.request_buffer = Vec::new();
|
||||
|
||||
return Ok(Some(request));
|
||||
}
|
||||
Err(RequestParseError::NeedMoreData) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue