Skip to content

Commit 5eca107

Browse files
committed
Uncomment code
1 parent 9aead5d commit 5eca107

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

vertx-core/src/main/java/io/vertx/core/http/impl/http2/codec/Http2ConnectionImpl.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ void onStreamWritabilityChanged(Http2Stream s) {
147147
void onStreamClosed(Http2Stream s) {
148148
Http2StreamBase stream = s.getProperty(streamKey);
149149
if (stream != null) {
150-
// boolean active = chctx.channel().isActive();
151-
// if (goAwayStatus != null) {
152-
// stream.onException(new HttpClosedException(goAwayStatus));
153-
// } else if (!active) {
154-
// stream.onException(HttpUtils.STREAM_CLOSED_EXCEPTION);
155-
// }
150+
boolean active = chctx.channel().isActive();
151+
if (goAwayStatus != null) {
152+
stream.onException(new HttpClosedException(goAwayStatus));
153+
} else if (!active) {
154+
stream.onException(HttpUtils.STREAM_CLOSED_EXCEPTION);
155+
}
156156
stream.onClose();
157157
}
158158
}

0 commit comments

Comments
 (0)