Skip to content

Commit 8d14c6f

Browse files
committed
Fix test failures. Handle full allocation case.
1 parent 0bcd69c commit 8d14c6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

java/org/apache/coyote/http2/Http2UpgradeHandler.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -815,8 +815,10 @@ int reserveWindowSize(Stream stream, int reservation, boolean block) throws IOEx
815815
stream.wait(writeTimeout);
816816
}
817817
// Has this stream been granted an allocation
818+
// Note: If the stream in not in this Map then the
819+
// requested write has been fully allocated
818820
int[] value = backLogStreams.get(stream);
819-
if (value[1] == 0) {
821+
if (value != null && value[1] == 0) {
820822
// No allocation
821823
// Close the connection. Do this first since
822824
// closing the stream will raise an exception

0 commit comments

Comments
 (0)