From b5971a68237cfccc2b29d15a6884be9d8e2a8a53 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Fri, 6 Dec 2019 08:06:11 +1100 Subject: [PATCH] Issue #4331 Close Complete async close after onError Signed-off-by: Greg Wilkins --- .../src/main/java/org/eclipse/jetty/server/HttpOutput.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java index 35fd1bccf98c..4c8bebb39bfd 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java @@ -1232,7 +1232,8 @@ public void run() } finally { - closed(); + // Initiate an async close + close(null); } } }