From 027b508446b620dc0920f5b73071c2be5ed9d327 Mon Sep 17 00:00:00 2001 From: iroqueta Date: Thu, 21 Aug 2025 17:05:54 -0300 Subject: [PATCH] The delete method of a storage file was leaving the http connection taken and this left no connections to the pool over time Issue: 205918 --- java/src/main/java/com/genexus/util/GXFile.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/src/main/java/com/genexus/util/GXFile.java b/java/src/main/java/com/genexus/util/GXFile.java index d8df716d8..64f158864 100644 --- a/java/src/main/java/com/genexus/util/GXFile.java +++ b/java/src/main/java/com/genexus/util/GXFile.java @@ -228,8 +228,9 @@ public void delete() { lineIterator.close(); lineIterator = null; } - if (this.getStream() != null) { - this.getStream().close(); + InputStream is = this.getStream(); + if (is != null) { + is.close(); } } catch (Exception ignored) {}