You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2014/04/23 14:27:53 UTC

svn commit: r1589384 - /tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java

Author: remm
Date: Wed Apr 23 12:27:52 2014
New Revision: 1589384

URL: http://svn.apache.org/r1589384
Log:
Do 10 requests even if the listener is complete, to check if everything is still fine after the handshake.

Modified:
    tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java

Modified: tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java?rev=1589384&r1=1589383&r2=1589384&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java (original)
+++ tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java Wed Apr 23 12:27:52 2014
@@ -129,10 +129,14 @@ public class TestSsl extends TomcatBaseT
 
         // One request should be sufficient
         int requestCount = 0;
+        int listenerComplete = 0;
         try {
-            while (!listener.isComplete() && requestCount < 5) {
+            while (requestCount < 10) {
                 requestCount++;
                 doRequest(os, r);
+                if (listener.isComplete() && listenerComplete == 0) {
+                    listenerComplete = requestCount;
+                }
             }
         } catch (AssertionError | IOException e) {
             String message = "Failed on request number " + requestCount
@@ -142,7 +146,7 @@ public class TestSsl extends TomcatBaseT
         }
 
         Assert.assertTrue(listener.isComplete());
-        System.out.println("Renegotiation completed after " + requestCount + " requests");
+        System.out.println("Renegotiation completed after " + listenerComplete + " requests");
     }
 
     private void doRequest(OutputStream os, Reader r) throws IOException {



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