Issue #4714 Updating lastRemoteStreamId on refused streams

Signed-off-by: Jesse Wilson <jwilson@squareup.com>
This commit is contained in:
Jesse Wilson 2020-03-25 22:02:20 -04:00
parent e0eb25515b
commit 37cfb2fa86
1 changed files with 1 additions and 0 deletions

View File

@ -772,6 +772,7 @@ public abstract class HTTP2Session extends ContainerLifeCycle implements ISessio
int maxCount = getMaxRemoteStreams();
if (maxCount >= 0 && remoteCount - remoteClosing >= maxCount)
{
updateLastRemoteStreamId(streamId);
reset(new ResetFrame(streamId, ErrorCode.REFUSED_STREAM_ERROR.code), Callback.NOOP);
return null;
}