@ Override public void closeStreamRemote ( Http2Stream stream , ChannelFuture future ) { switch ( stream . state ( ) ) { case HALF_CLOSED_REMOTE : case OPEN : stream . closeRemoteSide ( ) ; break ; default : closeStream ( stream , future ) ; break ; } }
Closes the remote side of the given stream . If this causes the stream to be closed adds a hook to close the channel after the given future completes .