hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r289316 - in /jakarta/httpclient/trunk/coyote-httpconnector/src: java/org/apache/http/coyote/impl/CoyoteHttpConnection.java tests/tests/performance/PerformanceTest.java
Date Thu, 15 Sep 2005 21:05:09 GMT
Author: olegk
Date: Thu Sep 15 14:05:02 2005
New Revision: 289316

URL: http://svn.apache.org/viewcvs?rev=289316&view=rev
Log:
OldIOSocketFactory renamed

Modified:
    jakarta/httpclient/trunk/coyote-httpconnector/src/java/org/apache/http/coyote/impl/CoyoteHttpConnection.java
    jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java

Modified: jakarta/httpclient/trunk/coyote-httpconnector/src/java/org/apache/http/coyote/impl/CoyoteHttpConnection.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/coyote-httpconnector/src/java/org/apache/http/coyote/impl/CoyoteHttpConnection.java?rev=289316&r1=289315&r2=289316&view=diff
==============================================================================
--- jakarta/httpclient/trunk/coyote-httpconnector/src/java/org/apache/http/coyote/impl/CoyoteHttpConnection.java
(original)
+++ jakarta/httpclient/trunk/coyote-httpconnector/src/java/org/apache/http/coyote/impl/CoyoteHttpConnection.java
Thu Sep 15 14:05:02 2005
@@ -35,8 +35,6 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.http.impl.DefaultHttpServerConnection;
-import org.apache.http.impl.io.DefaultHttpDataReceiverFactory;
-import org.apache.http.impl.io.DefaultHttpDataTransmitterFactory;
 import org.apache.http.params.HttpParams;
 
 /**
@@ -56,8 +54,6 @@
     public CoyoteHttpConnection() {
         super();
         this.name = "No Connection"; 
-        setReceiverFactory(new DefaultHttpDataReceiverFactory());
-        setTransmitterFactory(new DefaultHttpDataTransmitterFactory());
     }
 
     @Override

Modified: jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java?rev=289316&r1=289315&r2=289316&view=diff
==============================================================================
--- jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java
(original)
+++ jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java
Thu Sep 15 14:05:02 2005
@@ -49,9 +49,7 @@
 import org.apache.http.impl.DefaultHttpParams;
 import org.apache.http.impl.HttpGetRequest;
 import org.apache.http.impl.HttpPostRequest;
-import org.apache.http.impl.io.DefaultHttpDataReceiverFactory;
-import org.apache.http.impl.io.DefaultHttpDataTransmitterFactory;
-import org.apache.http.impl.io.OldIOSocketFactory;
+import org.apache.http.impl.io.PlainSocketFactory;
 import org.apache.http.io.SocketFactory;
 import org.apache.http.params.HttpParams;
 import org.apache.http.params.HttpProtocolParams;
@@ -137,7 +135,7 @@
 
 	public static void main(String[] args) throws Exception {
 		if (args.length < 2) {
-			System.out.println("Usage tests.performance.PerformanceTest <port> <count>
[NIO|OldIO]");
+			System.out.println("Usage tests.performance.PerformanceTest <port> <count>");
 			System.exit(1);
 		}
 		PerformanceTest test = new PerformanceTest();
@@ -145,7 +143,7 @@
 		int port = Integer.parseInt(args[0]);
 		int count = Integer.parseInt(args[1]);
 		
-        SocketFactory socketfactory = OldIOSocketFactory.getSocketFactory();
+        SocketFactory socketfactory = PlainSocketFactory.getSocketFactory();
         Protocol http = new Protocol("http", socketfactory, 80);
         HttpHost host = new HttpHost("localhost", port, http);
 



Mime
View raw message