This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new 7edcee8 Fixing flow control for zero length padding introduced an edge case 7edcee8 is described below commit 7edcee86dc34faa00cf831bb39ced3a9c59af369 Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon Sep 7 15:30:41 2020 +0100 Fixing flow control for zero length padding introduced an edge case Again, spotted by Travis CI --- test/org/apache/coyote/http2/TestCancelledUpload.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/test/org/apache/coyote/http2/TestCancelledUpload.java b/test/org/apache/coyote/http2/TestCancelledUpload.java index fa798c1..2a5b762 100644 --- a/test/org/apache/coyote/http2/TestCancelledUpload.java +++ b/test/org/apache/coyote/http2/TestCancelledUpload.java @@ -78,12 +78,16 @@ public class TestCancelledUpload extends Http2TestBase { return; } - // Validate any WindowSize frames (always arrive in pairs) + // Validate any WindowSize frames. Usually arrive in pairs. Depending on + // timing, can see a reset rather than than stream update. while (output.getTrace().startsWith("0-WindowSize-[")) { String trace = output.getTrace(); int size = Integer.parseInt(trace.substring(14, trace.length() - 2)); output.clearTrace(); parser.readFrame(true); + if (output.getTrace().startsWith("3-RST-[3]\n")) { + return; + } Assert.assertEquals("3-WindowSize-[" + size + "]\n", output.getTrace()); output.clearTrace(); parser.readFrame(true); @@ -118,13 +122,19 @@ public class TestCancelledUpload extends Http2TestBase { // There must be a reset. There may be some WindowSize frames parser.readFrame(true); - // Validate any WindowSize frames (always arrive in pairs) + // Validate any WindowSize frames. Usually arrive in pairs. Depending on + // timing, can see a reset rather than than stream update. while (output.getTrace().startsWith("0-WindowSize-[")) { String trace = output.getTrace(); int size = Integer.parseInt(trace.substring(14, trace.length() - 2)); output.clearTrace(); parser.readFrame(true); + if (output.getTrace().startsWith("3-RST-[3]\n")) { + return; + } Assert.assertEquals("3-WindowSize-[" + size + "]\n", output.getTrace()); + output.clearTrace(); + parser.readFrame(true); } // This should be the reset --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org