cb1b3517dc
Motivation: Incoming `Http2GoAwayFrame#lastStreamId()` tells what was the last streamId that the remote peer takes for processing [1]. We fire a userEvent for all streams above that value to let users know those are safe to retry on another connection. There is no need to go through `forEachActiveStream` if `lastStreamId == Integer.MAX_VALUE` because none of the streams can have id greater that MAX_VALUE. 1. https://datatracker.ietf.org/doc/html/rfc7540#section-6.8 Modifications: - Return fast from `onHttp2GoAwayFrame` in `Http2MultiplexCodec` and `Http2MultiplexHandler` if `lastStreamId() == Integer.MAX_VALUE`; Result: No unnecessary iteration over active streams on GO_AWAY if `lastStreamId() == Integer.MAX_VALUE`. |
||
---|---|---|
.. | ||
src | ||
pom.xml |