fix: close response outputstream in suo5v2
Docker Build Test / docker-build-test (push) Has been cancelled
MemShell IntegrationTest / xxljob (push) Has been cancelled
MemShell IntegrationTest / springwebmvc (push) Has been cancelled
MemShell IntegrationTest / springwebflux (push) Has been cancelled
MemShell IntegrationTest / struct2 (push) Has been cancelled
MemShell IntegrationTest / tomcat (push) Has been cancelled
MemShell IntegrationTest / glassfish (push) Has been cancelled
MemShell IntegrationTest / jbosseap (push) Has been cancelled
MemShell IntegrationTest / jetty (push) Has been cancelled
MemShell IntegrationTest / payara (push) Has been cancelled
MemShell IntegrationTest / wildfly (push) Has been cancelled
MemShell IntegrationTest / jbossas (push) Has been cancelled
MemShell IntegrationTest / resin (push) Has been cancelled
MemShell IntegrationTest / weblogic (push) Has been cancelled
MemShell IntegrationTest / websphere7 (push) Has been cancelled
MemShell IntegrationTest / websphere (push) Has been cancelled
Unit-Test / UniteTest (push) Has been cancelled

This commit is contained in:
zema1
2025-12-14 18:45:58 +08:00
committed by ReaJason
parent d3727d7d3e
commit 52f82d7979
11 changed files with 55 additions and 11 deletions
@@ -183,7 +183,11 @@ public class Suo5v2 implements Runnable, HostnameVerifier, X509TrustManager {
}
} catch (Throwable ignored) {
} finally {
try {
OutputStream out = (OutputStream) response.getClass().getMethod("getOutputStream").invoke(response);
out.flush();
out.close();
} catch (Throwable ignore) {}
}
}
@@ -162,7 +162,11 @@ public class Suo5v2ControllerHandler implements Controller, Runnable, HostnameVe
}
} catch (Throwable e) {
} finally {
try {
OutputStream out = resp.getOutputStream();
out.flush();
out.close();
} catch (Throwable ignored) {}
}
}
@@ -167,7 +167,11 @@ public class Suo5v2Filter implements Filter, Runnable, HostnameVerifier, X509Tru
}
} catch (Throwable e) {
} finally {
try {
OutputStream out = resp.getOutputStream();
out.flush();
out.close();
} catch (Throwable ignored) {}
}
}
@@ -179,7 +179,11 @@ public class Suo5v2Interceptor implements AsyncHandlerInterceptor, Runnable, Hos
}
} catch (Throwable e) {
} finally {
try {
OutputStream out = resp.getOutputStream();
out.flush();
out.close();
} catch (Throwable ignored) {}
}
}
@@ -216,7 +216,11 @@ public class Suo5v2JettyCustomizer implements HttpConfiguration.Customizer, Runn
}
} catch (Throwable ignored) {
} finally {
try {
OutputStream out = (OutputStream) response.getClass().getMethod("getOutputStream").invoke(response);
out.flush();
out.close();
} catch (Throwable ignore) {}
}
}
@@ -178,7 +178,11 @@ public class Suo5v2JettyHandler implements Runnable, HostnameVerifier, X509Trust
}
} catch (Throwable e) {
} finally {
try {
OutputStream out = (OutputStream) response.getClass().getMethod("getOutputStream").invoke(response);
out.flush();
out.close();
} catch (Throwable ignored) {}
}
}
@@ -173,7 +173,11 @@ public class Suo5v2Listener implements ServletRequestListener, Runnable, Hostnam
}
} catch (Throwable e) {
} finally {
try {
OutputStream out = resp.getOutputStream();
out.flush();
out.close();
} catch (Throwable ignored) {}
}
}
@@ -161,7 +161,11 @@ public class Suo5v2Servlet implements Servlet, Runnable, HostnameVerifier, X509T
}
} catch (Throwable e) {
} finally {
try {
OutputStream out = resp.getOutputStream();
out.flush();
out.close();
} catch (Throwable ignored) {}
}
}
@@ -164,7 +164,11 @@ public class Suo5v2Struct2Action implements Runnable, HostnameVerifier, X509Trus
}
} catch (Throwable e) {
} finally {
try {
OutputStream out = resp.getOutputStream();
out.flush();
out.close();
} catch (Throwable ignored) {}
}
}
@@ -164,7 +164,11 @@ public class Suo5v2UndertowServletHandler implements Runnable, HostnameVerifier,
}
} catch (Throwable e) {
} finally {
try {
OutputStream out = (OutputStream) response.getClass().getMethod("getOutputStream").invoke(response);
out.flush();
out.close();
} catch (Throwable ignored) {}
}
}
@@ -167,7 +167,11 @@ public class Suo5v2Valve implements Valve, Runnable, HostnameVerifier, X509Trust
}
} catch (Throwable e) {
} finally {
try {
OutputStream out = resp.getOutputStream();
out.flush();
out.close();
} catch (Throwable ignored) {}
}
}