@Override public void removeStream(IStream stream) { IStream removed = streams.remove(stream.getId()); if (removed != null) { onStreamClosed(stream); flowControl.onStreamDestroyed(stream); if (LOG.isDebugEnabled()) LOG.debug("Removed {} {}", stream.isLocal() ? "local" : "remote", stream); } }
@Override public void removeStream(IStream stream) { IStream removed = streams.remove(stream.getId()); if (removed != null) { onStreamClosed(stream); flowControl.onStreamDestroyed(stream); if (LOG.isDebugEnabled()) LOG.debug("Removed {} {}", stream.isLocal() ? "local" : "remote", stream); } }
void onStreamClosed(IStream stream, HttpChannelOverHTTP2 channel) { if (LOG.isDebugEnabled()) LOG.debug("{} closed for {}", stream, channel); channel.setStream(null); // Only non-push channels are released. if (stream.isLocal()) getHttpDestination().release(this); }