hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r732304 - in /httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio: NHttpClient.java NHttpSSLClient.java
Date Wed, 07 Jan 2009 11:28:06 GMT
Author: olegk
Date: Wed Jan  7 03:28:04 2009
New Revision: 732304

URL: http://svn.apache.org/viewvc?rev=732304&view=rev
Log:
Print messages to console on session request events

Modified:
    httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java
    httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpSSLClient.java

Modified: httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java?rev=732304&r1=732303&r2=732304&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java
(original)
+++ httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java
Wed Jan  7 03:28:04 2009
@@ -221,6 +221,7 @@
         }
         
         public void cancelled(final SessionRequest request) {
+            System.out.println("Connect request cancelled: " + request.getRemoteAddress());
             this.requestCount.countDown();
         }
 
@@ -228,10 +229,12 @@
         }
 
         public void failed(final SessionRequest request) {
+            System.out.println("Connect request failed: " + request.getRemoteAddress());
             this.requestCount.countDown();
         }
 
         public void timeout(final SessionRequest request) {
+            System.out.println("Connect request timed out: " + request.getRemoteAddress());
             this.requestCount.countDown();
         }
         

Modified: httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpSSLClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpSSLClient.java?rev=732304&r1=732303&r2=732304&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpSSLClient.java
(original)
+++ httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpSSLClient.java
Wed Jan  7 03:28:04 2009
@@ -230,6 +230,7 @@
         }
         
         public void cancelled(final SessionRequest request) {
+            System.out.println("Connect request cancelled: " + request.getRemoteAddress());
             this.requestCount.countDown();
         }
 
@@ -237,10 +238,12 @@
         }
 
         public void failed(final SessionRequest request) {
+            System.out.println("Connect request failed: " + request.getRemoteAddress());
             this.requestCount.countDown();
         }
 
         public void timeout(final SessionRequest request) {
+            System.out.println("Connect request timed out: " + request.getRemoteAddress());
             this.requestCount.countDown();
         }
         



Mime
View raw message