You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After send error, ignore calls to complete or completeWithError by the
application in the same thread (e.g. try-catch block), to avoid a
competing with an error callback from servlet container during which
the same action is taken.
Issue: SPR-16548
Copy file name to clipboardExpand all lines: spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseBodyEmitter.java
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,13 @@ public class ResponseBodyEmitter {
79
79
@Nullable
80
80
privateThrowablefailure;
81
81
82
+
/**
83
+
* After an IOException on send, the servlet container will provide an onError
84
+
* callback that we'll handle as completeWithError (on container thread).
85
+
* We use this flag to ignore competing attempts to completeWithError by
0 commit comments