Skip to content

Commit 05487be

Browse files
committed
Proper interrupt handling in ReadContextFilter
1 parent de11cff commit 05487be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bosk-spring-boot-3/src/main/java/works/bosk/spring/boot/ReadContextFilter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
3232
try {
3333
bosk.driver().flush();
3434
} catch (InterruptedException e) {
35+
// Assume the user wanted to interrupt the entire request,
36+
// not just the flush operation.
37+
Thread.currentThread().interrupt();
3538
throw new ServletException(e);
3639
}
3740
}

0 commit comments

Comments
 (0)