1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-30 16:40:21 +02:00

Clear http requests pool on app service drop #860

This commit is contained in:
Nikolay Kim
2019-05-22 11:18:33 -07:00
parent 5826f39dbe
commit 12842871fe
4 changed files with 69 additions and 6 deletions

View File

@@ -325,6 +325,10 @@ impl HttpRequestPool {
None
}
}
pub(crate) fn clear(&self) {
self.0.borrow_mut().clear()
}
}
#[cfg(test)]