From 05616d1e9d387a91db59ee74a57a40fe38443a79 Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Tue, 24 Jun 2014 13:50:52 +0200 Subject: [PATCH] Cosmetics. --- .../main/java/org/eclipse/jetty/http2/HTTP2FlowControl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2FlowControl.java b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2FlowControl.java index a57bce3ff3b..9111a1f17ad 100644 --- a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2FlowControl.java +++ b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2FlowControl.java @@ -75,6 +75,7 @@ public class HTTP2FlowControl implements FlowControl int delta = frame.getWindowDelta(); if (frame.getStreamId() > 0) { + // The stream may have been reset concurrently. if (stream != null) { int oldSize = stream.updateWindowSize(delta); @@ -84,7 +85,7 @@ public class HTTP2FlowControl implements FlowControl } else { - int oldSize = session.updateWindowSize(frame.getWindowDelta()); + int oldSize = session.updateWindowSize(delta); if (LOG.isDebugEnabled()) LOG.debug("Updated session window {} -> {} for {}", oldSize, oldSize + delta, session); }