You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2011/09/07 20:32:57 UTC

svn commit: r1166307 - /httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java

Author: olegk
Date: Wed Sep  7 18:32:56 2011
New Revision: 1166307

URL: http://svn.apache.org/viewvc?rev=1166307&view=rev
Log:
Removed reference to logging connection factories

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java?rev=1166307&r1=1166306&r2=1166307&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java (original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java Wed Sep  7 18:32:56 2011
@@ -49,7 +49,6 @@ import org.apache.http.impl.DefaultConne
 import org.apache.http.impl.EnglishReasonPhraseCatalog;
 import org.apache.http.impl.nio.DefaultClientIODispatch;
 import org.apache.http.impl.nio.DefaultServerIODispatch;
-import org.apache.http.impl.nio.pool.BasicNIOConnFactory;
 import org.apache.http.impl.nio.pool.BasicNIOConnPool;
 import org.apache.http.impl.nio.pool.BasicNIOPoolEntry;
 import org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor;
@@ -160,8 +159,7 @@ public class NHttpReverseProxy {
         HttpAsyncRequestExecutor executor = new HttpAsyncRequestExecutor(
                 outhttpproc, new ProxyOutgoingConnectionReuseStrategy(), params);
 
-        ProxyConnPool connPool = new ProxyConnPool(connectingIOReactor,
-                new BasicNIOConnFactory(new LoggingClientConnectionFactory(params)), params);
+        ProxyConnPool connPool = new ProxyConnPool(connectingIOReactor, params);
         connPool.setMaxTotal(100);
         connPool.setDefaultMaxPerRoute(20);
 
@@ -172,10 +170,10 @@ public class NHttpReverseProxy {
                 handlerRegistry, inhttpproc, new ProxyIncomingConnectionReuseStrategy(), params);
 
         final IOEventDispatch connectingEventDispatch = new DefaultClientIODispatch(
-                clientHandler, new LoggingClientConnectionFactory(params));
+                clientHandler, params);
 
         final IOEventDispatch listeningEventDispatch = new DefaultServerIODispatch(
-                serviceHandler, new LoggingServerConnectionFactory(params));
+                serviceHandler, params);
 
         Thread t = new Thread(new Runnable() {