[spring-extensions] branch maint-6 updated: Plug a small hole that would allow a connection to leak.
Scott Cantor
cantor.2 at osu.edu
Thu Mar 14 18:56:04 UTC 2024
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch maint-6
in repository spring-extensions.
View the commit online:
http://git.shibboleth.net/view/?p=spring-extensions.git;a=commit;h=f9e6b268c8e6634fa8811b6664753379535e859f
The following commit(s) were added to refs/heads/maint-6 by this push:
new f9e6b26 Plug a small hole that would allow a connection to leak.
f9e6b26 is described below
commit f9e6b268c8e6634fa8811b6664753379535e859f
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Aug 29 12:58:40 2023 -0400
Plug a small hole that would allow a connection to leak.
---
src/main/java/net/shibboleth/ext/spring/resource/HTTPResource.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/main/java/net/shibboleth/ext/spring/resource/HTTPResource.java b/src/main/java/net/shibboleth/ext/spring/resource/HTTPResource.java
index b16bcab..5789dfc 100644
--- a/src/main/java/net/shibboleth/ext/spring/resource/HTTPResource.java
+++ b/src/main/java/net/shibboleth/ext/spring/resource/HTTPResource.java
@@ -174,7 +174,12 @@ public class HTTPResource extends AbstractIdentifiedInitializableComponent imple
if (httpClientContextHandler != null) {
log.debug("Invoking HttpClientContextHandler after execution");
- httpClientContextHandler.invokeAfter(context, httpGet);
+ try {
+ httpClientContextHandler.invokeAfter(context, httpGet);
+ } catch (final Throwable e) {
+ closeResponse(response);
+ throw e;
+ }
}
reportCachingStatus(context);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list