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 2012/09/22 14:27:03 UTC

svn commit: r1388785 - in /httpcomponents/httpasyncclient/trunk: httpasyncclient/src/main/java/org/apache/http/impl/nio/client/LoggingAsyncRequestExecutor.java pom.xml

Author: olegk
Date: Sat Sep 22 12:27:03 2012
New Revision: 1388785

URL: http://svn.apache.org/viewvc?rev=1388785&view=rev
Log:
Upgraded HttpCore to version 4.2.2

Modified:
    httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/LoggingAsyncRequestExecutor.java
    httpcomponents/httpasyncclient/trunk/pom.xml

Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/LoggingAsyncRequestExecutor.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/LoggingAsyncRequestExecutor.java?rev=1388785&r1=1388784&r2=1388785&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/LoggingAsyncRequestExecutor.java (original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/LoggingAsyncRequestExecutor.java Sat Sep 22 12:27:03 2012
@@ -28,16 +28,13 @@
 package org.apache.http.impl.nio.client;
 
 import java.io.IOException;
-import java.lang.reflect.Method;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.http.ConnectionClosedException;
 import org.apache.http.HttpException;
 import org.apache.http.nio.ContentDecoder;
 import org.apache.http.nio.ContentEncoder;
 import org.apache.http.nio.NHttpClientConnection;
-import org.apache.http.nio.protocol.HttpAsyncRequestExecutionHandler;
 import org.apache.http.nio.protocol.HttpAsyncRequestExecutor;
 
 class LoggingAsyncRequestExecutor extends HttpAsyncRequestExecutor {
@@ -131,23 +128,4 @@ class LoggingAsyncRequestExecutor extend
         super.timeout(conn);
     }
 
-    @Override
-    public void endOfInput(NHttpClientConnection conn) throws IOException {
-        ///
-        /// TODO: remove when fix for HTTPASYNC-21 is available in HttpCore stable release
-        ///
-        HttpAsyncRequestExecutionHandler<?> handler = (HttpAsyncRequestExecutionHandler<?>) conn.getContext().getAttribute(HTTP_HANDLER);
-        Object state = conn.getContext().getAttribute("http.nio.http-exchange-state");
-        try {
-            Method m1 = state.getClass().getDeclaredMethod("getRequestState");
-            m1.setAccessible(true);
-            Object obj = m1.invoke(state);
-            if (!obj.toString().equals("READY")) {
-                handler.failed(new ConnectionClosedException("Connection closed"));
-            }
-        } catch (Exception ex) {
-        }
-        super.endOfInput(conn);
-    }
-
 }

Modified: httpcomponents/httpasyncclient/trunk/pom.xml
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/pom.xml?rev=1388785&r1=1388784&r2=1388785&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/pom.xml (original)
+++ httpcomponents/httpasyncclient/trunk/pom.xml Sat Sep 22 12:27:03 2012
@@ -71,7 +71,7 @@
     <maven.compile.target>1.5</maven.compile.target>
     <maven.compile.optimize>true</maven.compile.optimize>
     <maven.compile.deprecation>true</maven.compile.deprecation>
-    <httpcore.version>4.2.1</httpcore.version>
+    <httpcore.version>4.2.2</httpcore.version>
     <httpclient.version>4.2.1</httpclient.version>
     <commons-logging.version>1.1.1</commons-logging.version>
     <!-- Note IO 2.3+ requires Java 6 -->