hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1723802 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/hc/core5/reactor/DefaultConnectingIOReactor.java
Date Fri, 08 Jan 2016 21:25:07 GMT
Author: olegk
Date: Fri Jan  8 21:25:06 2016
New Revision: 1723802

URL: http://svn.apache.org/viewvc?rev=1723802&view=rev
Log:
HTTPCORE-416: DefaultConnectingIOReactor to treat failure to open a channel for a new outgoing
connection as a recoverable request failure

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/hc/core5/reactor/DefaultConnectingIOReactor.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/hc/core5/reactor/DefaultConnectingIOReactor.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/hc/core5/reactor/DefaultConnectingIOReactor.java?rev=1723802&r1=1723801&r2=1723802&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/hc/core5/reactor/DefaultConnectingIOReactor.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/hc/core5/reactor/DefaultConnectingIOReactor.java
Fri Jan  8 21:25:06 2016
@@ -229,7 +229,8 @@ public class DefaultConnectingIOReactor
             try {
                 socketChannel = SocketChannel.open();
             } catch (final IOException ex) {
-                throw new IOReactorException("Failure opening socket", ex);
+                request.failed(ex);
+                return;
             }
             try {
                 validateAddress(request.getLocalAddress());



Mime
View raw message