mirror of
https://github.com/actix/actix-extras.git
synced 2025-02-17 16:43:30 +01:00
Clean up response extensions in response pool #817
This commit is contained in:
parent
6e00eef63a
commit
fc19ce41c4
@ -1,5 +1,12 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
|
## [0.1.5] - 2019-05-xx
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Clean up response extensions in response pool #817
|
||||||
|
|
||||||
|
|
||||||
## [0.1.4] - 2019-04-24
|
## [0.1.4] - 2019-04-24
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -449,6 +449,7 @@ impl BoxedResponsePool {
|
|||||||
fn release(&self, msg: Box<ResponseHead>) {
|
fn release(&self, msg: Box<ResponseHead>) {
|
||||||
let v = &mut self.0.borrow_mut();
|
let v = &mut self.0.borrow_mut();
|
||||||
if v.len() < 128 {
|
if v.len() < 128 {
|
||||||
|
msg.extensions.borrow_mut().clear();
|
||||||
v.push(msg);
|
v.push(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user