From 38c6917acc39611f8a1edc7be3ce2f260dd3d36c Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Thu, 10 Feb 2022 14:39:17 +0100 Subject: [PATCH] Fixes #7548 - Interrupt flag is not always cleared in between requests. Now clearing the interrupt flag. Signed-off-by: Simone Bordet --- .../eclipse/jetty/util/thread/ReservedThreadExecutor.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/thread/ReservedThreadExecutor.java b/jetty-util/src/main/java/org/eclipse/jetty/util/thread/ReservedThreadExecutor.java index b9d88dc8a626..1e0e8377c43f 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/thread/ReservedThreadExecutor.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/thread/ReservedThreadExecutor.java @@ -410,6 +410,11 @@ public void run() { LOG.warn("Unable to run task", e); } + finally + { + // Clear any interrupted status. + Thread.interrupted(); + } } } finally @@ -431,4 +436,4 @@ public String toString() _thread); } } -} \ No newline at end of file +}