Skip to content

Commit 3857494

Browse files
committed
Fix issues close exceptions
1 parent 45f0d12 commit 3857494

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

httpcore5-h2/src/main/java/org/apache/hc/core5/http2/nio/support/H2OverH2TunnelExchangeHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ public void streamEnd(final List<? extends Header> trailers) {
254254
tunnel.onRemoteStreamEnd();
255255
} else {
256256
closeTransport(CloseMode.GRACEFUL);
257-
}
258-
if (done.compareAndSet(false, true) && callback != null) {
259-
callback.failed(new ConnectionClosedException("Tunnel stream closed"));
257+
if (done.compareAndSet(false, true) && callback != null) {
258+
callback.failed(new ConnectionClosedException("Tunnel stream closed before establishment"));
259+
}
260260
}
261261
}
262262

0 commit comments

Comments
 (0)