From 37cfb2fa8696d3aac47cef00aa9c23a2cf0dc8ce Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Wed, 25 Mar 2020 22:02:20 -0400 Subject: [PATCH] Issue #4714 Updating lastRemoteStreamId on refused streams Signed-off-by: Jesse Wilson --- .../src/main/java/org/eclipse/jetty/http2/HTTP2Session.java | 1 + 1 file changed, 1 insertion(+) diff --git a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java index ef3ff260812..2248ed0990e 100644 --- a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java +++ b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java @@ -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; }