This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/master by this push:
     new 2348b11  Fix intermittently failing test
2348b11 is described below

commit 2348b113fd82a97b84662596834807f031a9a6ef
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Sep 9 09:54:47 2020 +0100

    Fix intermittently failing test
    
    Writes as well as reads will break if the server closes the connection
---
 test/org/apache/coyote/http2/TestHttp2Limits.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/org/apache/coyote/http2/TestHttp2Limits.java 
b/test/org/apache/coyote/http2/TestHttp2Limits.java
index c8f463a..1e9644d 100644
--- a/test/org/apache/coyote/http2/TestHttp2Limits.java
+++ b/test/org/apache/coyote/http2/TestHttp2Limits.java
@@ -45,8 +45,8 @@ public class TestHttp2Limits extends Http2TestBase {
         http2Connect(false);
 
         for (int i = 0; i < 100; i++) {
-            sendSettings(0, false);
             try {
+                sendSettings(0, false);
                 parser.readFrame(true);
             } catch (IOException ioe) {
                 // Server closed connection before client has a chance to read


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to