From ac905a5abeb9987423deda03100b0c2a3c70b022 Mon Sep 17 00:00:00 2001 From: liubao68 Date: Mon, 2 Sep 2024 16:01:15 +0800 Subject: [PATCH] [#4477]Fix GoAway issue in Http2 after many requests timeout (#4508) --- .../vertx/http/VertxServerResponseToHttpServletResponse.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/http/VertxServerResponseToHttpServletResponse.java b/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/http/VertxServerResponseToHttpServletResponse.java index 668ce0022b5..97b07405b39 100644 --- a/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/http/VertxServerResponseToHttpServletResponse.java +++ b/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/http/VertxServerResponseToHttpServletResponse.java @@ -117,6 +117,9 @@ public void flushBuffer() { } public void internalFlushBuffer() { + if (serverResponse.closed()) { + return; + } if (bodyBuffer == null) { serverResponse.end(); return;