diff --git a/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2Connection.java b/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2Connection.java index 5c6bb7a406..71a574f6cc 100644 --- a/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2Connection.java +++ b/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2Connection.java @@ -434,9 +434,6 @@ public class DefaultHttp2Connection implements Http2Connection { public Http2Stream open(boolean halfClosed) throws Http2Exception { state = activeState(id, state, isLocal(), halfClosed); activate(); - if (halfClosed) { - notifyHalfClosed(this); - } return this; } @@ -900,9 +897,6 @@ public class DefaultHttp2Connection implements Http2Connection { public DefaultStream createStream(int streamId, boolean halfClosed) throws Http2Exception { DefaultStream stream = createStream(streamId, activeState(streamId, IDLE, isLocal(), halfClosed)); stream.activate(); - if (halfClosed) { - notifyHalfClosed(stream); - } return stream; } diff --git a/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoder.java b/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoder.java index 656229fdf7..d477ea889e 100644 --- a/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoder.java +++ b/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoder.java @@ -529,7 +529,7 @@ public class DefaultHttp2ConnectionDecoder implements Http2ConnectionDecoder { /** * Helper method for determining whether or not to ignore inbound frames. A stream is considered to be created - * after a go away is sent if the following conditions hold: + * after a {@code GOAWAY} is sent if the following conditions hold: *

*