This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 21f904f1cb Tighter validation to debug Gump failure
21f904f1cb is described below
commit 21f904f1cb32e34a7b5d4c0dff949027947d3029
Author: Mark Thomas <[email protected]>
AuthorDate: Sun Aug 6 13:14:14 2023 +0100
Tighter validation to debug Gump failure
---
test/org/apache/coyote/http2/TestHttp2Section_6_9.java | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/test/org/apache/coyote/http2/TestHttp2Section_6_9.java
b/test/org/apache/coyote/http2/TestHttp2Section_6_9.java
index 176c669cef..966bf88d24 100644
--- a/test/org/apache/coyote/http2/TestHttp2Section_6_9.java
+++ b/test/org/apache/coyote/http2/TestHttp2Section_6_9.java
@@ -93,12 +93,20 @@ public class TestHttp2Section_6_9 extends Http2TestBase {
// Default connection window size is 64k - 1. Initial request will have
// used 8k (56k -1).
- // Use up the remaining connection window. These requests require 56k
- // but there is only 56k - 1 available.
- for (int i = 3; i < 17; i += 2) {
+ // Use up the remaining connection window. These requests require 48k.
+ for (int i = 3; i < 15; i += 2) {
sendSimpleGetRequest(i);
readSimpleGetResponse();
+ Assert.assertEquals(getSimpleResponseTrace(i), output.getTrace());
+ output.clearTrace();
}
+ // This request requires 8k but there is only 8k-1 available
+ sendSimpleGetRequest(15);
+ readSimpleGetResponse();
+ String expected = getResponseBodyFrameTrace(15, 200,
"application/octet-stream", null, "8191", "8192");
+ // No end of stream
+ expected = expected.substring(0, expected.length() -
"15-EndOfStream\n".length());
+ Assert.assertEquals(expected, output.getTrace());
output.clearTrace();
// It should be possible to send a request that generates an empty
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]