Skip to content
Permalink
Browse files

Fix test failures. Handle full allocation case.

  • Loading branch information
markt-asf committed May 3, 2019
1 parent d127a09 commit ada725a50a60867af3422c8e612aecaeea856a9a
Showing with 3 additions and 1 deletion.
  1. +3 −1 java/org/apache/coyote/http2/Http2UpgradeHandler.java
@@ -811,8 +811,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 ada725a

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