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 2017/04/08 09:31:39 UTC

svn commit: r1790665 - /httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ClientHttp1StreamDuplexer.java

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