hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1790665 - /httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ClientHttp1StreamDuplexer.java
Date Sat, 08 Apr 2017 09:31:39 GMT
Author: olegk
Date: Sat Apr  8 09:31:39 2017
New Revision: 1790665

URL: http://svn.apache.org/viewvc?rev=1790665&view=rev
Log:
Fixed client exchange handler initialization sequence

Modified:
    httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ClientHttp1StreamDuplexer.java

Modified: httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ClientHttp1StreamDuplexer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ClientHttp1StreamDuplexer.java?rev=1790665&r1=1790664&r2=1790665&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ClientHttp1StreamDuplexer.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ClientHttp1StreamDuplexer.java
Sat Apr  8 09:31:39 2017
@@ -320,11 +320,12 @@ public class ClientHttp1StreamDuplexer e
                 exchangeHandler,
                 context,
                 contentBuffer);
+        pipeline.add(handler);
+        outgoing = handler;
+
         if (handler.isOutputReady()) {
             handler.produceOutput();
         }
-        pipeline.add(handler);
-        outgoing = handler;
     }
 
     @Override



Mime
View raw message