Skip to content

Commit

Permalink
#10226 only fail the stream when a cause is given
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
  • Loading branch information
lorban committed Mar 29, 2024
1 parent dd75e74 commit f69fe95
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,8 @@ public void onClose(Throwable cause)
_retainableByteBuffer = null;
}
HttpStreamOverHTTP1 stream = _stream.get();
if (stream != null)
stream.failed(new EofException());
if (stream != null && cause != null)
stream.failed(cause);

// TODO: do we really need to do this?
// This event is fired really late, sendCallback should already be failed at this point.
Expand Down

0 comments on commit f69fe95

Please sign in to comment.