Skip to content

Commit 0f96503

Browse files
committed
Uncomment code
1 parent 0c166b9 commit 0f96503

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/Http2ConnectionBase.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ void onStreamWritabilityChanged(Http2Stream s) {
142142
void onStreamClosed(Http2Stream s) {
143143
VertxHttp2Stream stream = s.getProperty(streamKey);
144144
if (stream != null) {
145-
// boolean active = chctx.channel().isActive();
146-
// if (goAwayStatus != null) {
147-
// stream.onException(new HttpClosedException(goAwayStatus));
148-
// } else if (!active) {
149-
// stream.onException(HttpUtils.STREAM_CLOSED_EXCEPTION);
150-
// }
145+
boolean active = chctx.channel().isActive();
146+
if (goAwayStatus != null) {
147+
stream.onException(new HttpClosedException(goAwayStatus));
148+
} else if (!active) {
149+
stream.onException(HttpUtils.STREAM_CLOSED_EXCEPTION);
150+
}
151151
stream.onClose();
152152
}
153153
}

0 commit comments

Comments
 (0)