Skip to content
Permalink
Browse files

Fix test failures. Handle full allocation case.

  • Loading branch information...
markt-asf committed May 3, 2019
1 parent 0bcd69c commit 8d14c6f21d29768a39be4b6b9517060dc6606758
Showing with 3 additions and 1 deletion.
  1. +3 −1 java/org/apache/coyote/http2/Http2UpgradeHandler.java
@@ -815,8 +815,10 @@ int reserveWindowSize(Stream stream, int reservation, boolean block) throws IOEx
stream.wait(writeTimeout);
}
// Has this stream been granted an allocation
// Note: If the stream in not in this Map then the
// requested write has been fully allocated
int[] value = backLogStreams.get(stream);
if (value[1] == 0) {
if (value != null && value[1] == 0) {
// No allocation
// Close the connection. Do this first since
// closing the stream will raise an exception

0 comments on commit 8d14c6f

Please sign in to comment.
You can’t perform that action at this time.