Skip to content

Commit ada725a

Browse files
committed
Fix test failures. Handle full allocation case.
1 parent d127a09 commit ada725a

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
@@ -811,8 +811,10 @@ int reserveWindowSize(Stream stream, int reservation, boolean block) throws IOEx
811811
stream.wait(writeTimeout);
812812
}
813813
// Has this stream been granted an allocation
814+
// Note: If the stream in not in this Map then the
815+
// requested write has been fully allocated
814816
int[] value = backLogStreams.get(stream);
815-
if (value[1] == 0) {
817+
if (value != null && value[1] == 0) {
816818
// No allocation
817819
// Close the connection. Do this first since
818820
// closing the stream will raise an exception

0 commit comments

Comments
 (0)