hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r831527 - in /httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http: HttpCoreNIOSSLTestBase.java HttpCoreNIOTestBase.java impl/nio/reactor/TestDefaultIOReactorsSSL.java
Date Sat, 31 Oct 2009 09:58:16 GMT
Author: olegk
Date: Sat Oct 31 09:58:15 2009
New Revision: 831527

URL: http://svn.apache.org/viewvc?rev=831527&view=rev
Log:
Increased time outs; print out exception stack trace to std out

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/HttpCoreNIOSSLTestBase.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/HttpCoreNIOTestBase.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/impl/nio/reactor/TestDefaultIOReactorsSSL.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/HttpCoreNIOSSLTestBase.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/HttpCoreNIOSSLTestBase.java?rev=831527&r1=831526&r2=831527&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/HttpCoreNIOSSLTestBase.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/HttpCoreNIOSSLTestBase.java
Sat Oct 31 09:58:15 2009
@@ -81,14 +81,14 @@
         try {
             this.client.shutdown();
         } catch (IOException ex) {
-            ex.printStackTrace();
+            ex.printStackTrace(System.out);
         }
         List<ExceptionEvent> clogs = this.client.getAuditLog();
         if (clogs != null) {
             for (ExceptionEvent clog: clogs) {
                 Throwable cause = clog.getCause();
                 if (!(cause instanceof OoopsieRuntimeException)) {
-                    cause.printStackTrace();
+                    cause.printStackTrace(System.out);
                 }
             }
         }
@@ -103,7 +103,7 @@
             for (ExceptionEvent slog: slogs) {
                 Throwable cause = slog.getCause();
                 if (!(cause instanceof OoopsieRuntimeException)) {
-                    cause.printStackTrace();
+                    cause.printStackTrace(System.out);
                 }
             }
         }

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/HttpCoreNIOTestBase.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/HttpCoreNIOTestBase.java?rev=831527&r1=831526&r2=831527&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/HttpCoreNIOTestBase.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/HttpCoreNIOTestBase.java
Sat Oct 31 09:58:15 2009
@@ -57,7 +57,7 @@
     protected void setUp() throws Exception {
         HttpParams serverParams = new SyncBasicHttpParams();
         serverParams
-            .setIntParameter(CoreConnectionPNames.SO_TIMEOUT, 60000)
+            .setIntParameter(CoreConnectionPNames.SO_TIMEOUT, 180000)
             .setIntParameter(CoreConnectionPNames.SOCKET_BUFFER_SIZE, 8 * 1024)
             .setBooleanParameter(CoreConnectionPNames.STALE_CONNECTION_CHECK, false)
             .setBooleanParameter(CoreConnectionPNames.TCP_NODELAY, true)
@@ -67,8 +67,8 @@
 
         HttpParams clientParams = new SyncBasicHttpParams();
         clientParams
-            .setIntParameter(CoreConnectionPNames.SO_TIMEOUT, 60000)
-            .setIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 30000)
+            .setIntParameter(CoreConnectionPNames.SO_TIMEOUT, 180000)
+            .setIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 180000)
             .setIntParameter(CoreConnectionPNames.SOCKET_BUFFER_SIZE, 8 * 1024)
             .setBooleanParameter(CoreConnectionPNames.STALE_CONNECTION_CHECK, false)
             .setBooleanParameter(CoreConnectionPNames.TCP_NODELAY, true)

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/impl/nio/reactor/TestDefaultIOReactorsSSL.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/impl/nio/reactor/TestDefaultIOReactorsSSL.java?rev=831527&r1=831526&r2=831527&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/impl/nio/reactor/TestDefaultIOReactorsSSL.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/impl/nio/reactor/TestDefaultIOReactorsSSL.java
Sat Oct 31 09:58:15 2009
@@ -30,7 +30,6 @@
 import java.io.IOException;
 import java.net.InetSocketAddress;
 import java.util.concurrent.CountDownLatch;
-import java.util.concurrent.TimeUnit;
 
 import junit.framework.Test;
 import junit.framework.TestSuite;
@@ -205,7 +204,7 @@
                     null);
         }
      
-        requestConns.await(10000, TimeUnit.MILLISECONDS);
+        requestConns.await();
         assertEquals(0, requestConns.getCount());
      
         this.client.shutdown();



Mime
View raw message