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 f69fe95 commit e990b90
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.eclipse.jetty.io.ByteBufferPool;
import org.eclipse.jetty.io.Content;
import org.eclipse.jetty.io.EndPoint;
import org.eclipse.jetty.io.EofException;
import org.eclipse.jetty.io.RetainableByteBuffer;
import org.eclipse.jetty.server.AbstractMetaDataConnection;
import org.eclipse.jetty.server.ConnectionMetaData;
Expand Down Expand Up @@ -172,8 +171,8 @@ public void onClose(Throwable cause)
networkBuffer.release();
networkBuffer = null;
}
if (stream != null)
stream.failed(new EofException());
if (stream != null && cause != null)
stream.failed(cause);

super.onClose(cause);
}
Expand Down

0 comments on commit e990b90

Please sign in to comment.