Return-Path: X-Original-To: apmail-hc-commits-archive@www.apache.org Delivered-To: apmail-hc-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8018A17510 for ; Wed, 21 Oct 2015 08:50:43 +0000 (UTC) Received: (qmail 90384 invoked by uid 500); 21 Oct 2015 08:50:43 -0000 Delivered-To: apmail-hc-commits-archive@hc.apache.org Received: (qmail 90343 invoked by uid 500); 21 Oct 2015 08:50:43 -0000 Mailing-List: contact commits-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list commits@hc.apache.org Received: (qmail 90334 invoked by uid 99); 21 Oct 2015 08:50:43 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Oct 2015 08:50:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D86021809DB for ; Wed, 21 Oct 2015 08:50:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.79 X-Spam-Level: * X-Spam-Status: No, score=1.79 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id EgacuUqhivbp for ; Wed, 21 Oct 2015 08:50:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id E529420633 for ; Wed, 21 Oct 2015 08:50:41 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A2E1CE0454 for ; Wed, 21 Oct 2015 08:50:41 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id A2B0A3A0337 for ; Wed, 21 Oct 2015 08:50:41 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@hc.apache.org From: olegk@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20151021085041.A2B0A3A0337@svn01-us-west.apache.org> 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 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(); }