hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1772537 - /httpcomponents/httpcore/trunk/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractHttp2StreamMultiplexer.java
Date Sun, 04 Dec 2016 13:50:13 GMT
Author: olegk
Date: Sun Dec  4 13:50:12 2016
New Revision: 1772537

URL: http://svn.apache.org/viewvc?rev=1772537&view=rev
Log:
Immediately add new stream to the stream map

Modified:
    httpcomponents/httpcore/trunk/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractHttp2StreamMultiplexer.java

Modified: httpcomponents/httpcore/trunk/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractHttp2StreamMultiplexer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractHttp2StreamMultiplexer.java?rev=1772537&r1=1772536&r2=1772537&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractHttp2StreamMultiplexer.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractHttp2StreamMultiplexer.java
Sun Dec  4 13:50:12 2016
@@ -543,11 +543,12 @@ abstract class AbstractHttp2StreamMultip
                         executionCommand.getExchangeHandler(),
                         executionCommand.getContext());
                 final Http2Stream stream = new Http2Stream(channel, streamHandler, false);
+                streamMap.put(streamId, stream);
+
                 if (stream.isOutputReady()) {
                     stream.produceOutput();
                 }
 
-                streamMap.put(streamId, stream);
                 if (!outputQueue.isEmpty()) {
                     return;
                 }



Mime
View raw message