From fc19ce41c42ded0143c999d94ee6cb917641b98e Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 3 May 2019 15:26:34 -0700 Subject: [PATCH] Clean up response extensions in response pool #817 --- actix-http/CHANGES.md | 7 +++++++ actix-http/src/message.rs | 1 + 2 files changed, 8 insertions(+) diff --git a/actix-http/CHANGES.md b/actix-http/CHANGES.md index d1a043d8d..69abcfba6 100644 --- a/actix-http/CHANGES.md +++ b/actix-http/CHANGES.md @@ -1,5 +1,12 @@ # Changes +## [0.1.5] - 2019-05-xx + +### Fixed + +* Clean up response extensions in response pool #817 + + ## [0.1.4] - 2019-04-24 ### Added diff --git a/actix-http/src/message.rs b/actix-http/src/message.rs index c279aaebf..f3c01a12b 100644 --- a/actix-http/src/message.rs +++ b/actix-http/src/message.rs @@ -449,6 +449,7 @@ impl BoxedResponsePool { fn release(&self, msg: Box) { let v = &mut self.0.borrow_mut(); if v.len() < 128 { + msg.extensions.borrow_mut().clear(); v.push(msg); } }