tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1847319 - /tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java
Date Fri, 23 Nov 2018 21:23:14 GMT
Author: markt
Date: Fri Nov 23 21:23:14 2018
New Revision: 1847319

URL: http://svn.apache.org/viewvc?rev=1847319&view=rev
Log:
Add some debug code to help diagnose intermittent test failures

Modified:
    tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java

Modified: tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java?rev=1847319&r1=1847318&r2=1847319&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java (original)
+++ tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java Fri Nov 23 21:23:14 2018
@@ -153,9 +153,11 @@ public class TestAsync extends Http2Test
         // Body
 
         if (!connectionUnlimited || !streamUnlimited) {
-
+            // TODO Remove debug code
+            System.out.println("Read loop 1");
             while (output.getBytesRead() < startingWindowSize) {
                 parser.readFrame(true);
+                System.out.println(output.getBytesRead());
             }
 
             // Check that the right number of bytes were received
@@ -171,8 +173,11 @@ public class TestAsync extends Http2Test
                 sendWindowUpdate(0, windowSizeIncrease);
             }
 
+            // TODO Remove debug code
+            System.out.println("Read loop 2");
             while (output.getBytesRead() < startingWindowSize + windowSizeIncrease) {
                 parser.readFrame(true);
+                System.out.println(output.getBytesRead());
             }
 
             // Check that the right number of bytes were received
@@ -188,8 +193,11 @@ public class TestAsync extends Http2Test
             }
         }
 
+        // TODO Remove debug code
+        System.out.println("Read loop 3");
         while (!output.getTrace().endsWith("3-EndOfStream\n")) {
             parser.readFrame(true);
+            System.out.println(output.getBytesRead());
         }
 
         // Check that the right number of bytes were received



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message