hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1709765 - in /httpcomponents/httpcore/trunk/httpcore-nio/src: main/java/org/apache/http/nio/protocol/HttpAsyncService.java test/java/org/apache/http/nio/protocol/TestHttpAsyncService.java
Date Wed, 21 Oct 2015 08:50:41 GMT
Author: olegk
Date: Wed Oct 21 08:50:41 2015
New Revision: 1709765

URL: http://svn.apache.org/viewvc?rev=1709765&view=rev
Log:
Do not suspend output upon response completion while there may still be data in the SSL or
session buffers

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/protocol/TestHttpAsyncService.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java?rev=1709765&r1=1709764&r2=1709765&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java
Wed Oct 21 08:50:41 2015
@@ -685,11 +685,6 @@ public class HttpAsyncService implements
         if (!this.connStrategy.keepAlive(request, response, context)) {
             conn.close();
         } else {
-            // Ready to process new request
-            final Queue<PipelineEntry> pipeline = state.getPipeline();
-            if (pipeline.isEmpty()) {
-                conn.suspendOutput();
-            }
             conn.requestInput();
         }
     }

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/protocol/TestHttpAsyncService.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/protocol/TestHttpAsyncService.java?rev=1709765&r1=1709764&r2=1709765&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/protocol/TestHttpAsyncService.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/protocol/TestHttpAsyncService.java
Wed Oct 21 08:50:41 2015
@@ -846,7 +846,6 @@ public class TestHttpAsyncService {
         Mockito.verify(this.conn).submitResponse(response);
         Mockito.verify(this.responseProducer).responseCompleted(exchangeContext);
         Mockito.verify(this.conn).requestInput();
-        Mockito.verify(this.conn).suspendOutput();
         Mockito.verify(this.conn, Mockito.never()).close();
     }
 



Mime
View raw message