Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 97649 invoked from network); 7 Dec 2006 19:20:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2006 19:20:26 -0000 Received: (qmail 16443 invoked by uid 500); 7 Dec 2006 19:20:33 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 16406 invoked by uid 500); 7 Dec 2006 19:20:33 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 16395 invoked by uid 99); 7 Dec 2006 19:20:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 11:20:33 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 11:20:24 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 74C701A984A; Thu, 7 Dec 2006 11:19:42 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r483615 - /httpd/httpd/branches/2.0.x/modules/arch/win32/mod_isapi.c Date: Thu, 07 Dec 2006 19:19:42 -0000 To: cvs@httpd.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061207191942.74C701A984A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: wrowe Date: Thu Dec 7 11:19:41 2006 New Revision: 483615 URL: http://svn.apache.org/viewvc?view=rev&rev=483615 Log: Revert a regression introduced in the recent overhauls of mod_isapi. PR 40470 points out that we no longer handle ate == headlen, where there is a headers-only response from the isapi app to the server. This patch restores the previous behavior of pending those headers until some amount of body response is ready to be sent to the client. Backports: 483613 Modified: httpd/httpd/branches/2.0.x/modules/arch/win32/mod_isapi.c Modified: httpd/httpd/branches/2.0.x/modules/arch/win32/mod_isapi.c URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/modules/arch/win32/mod_isapi.c?view=diff&rev=483615&r1=483614&r2=483615 ============================================================================== --- httpd/httpd/branches/2.0.x/modules/arch/win32/mod_isapi.c (original) +++ httpd/httpd/branches/2.0.x/modules/arch/win32/mod_isapi.c Thu Dec 7 11:19:41 2006 @@ -964,6 +964,11 @@ cid->response_sent = 1; return (rv == APR_SUCCESS); } + /* Deliberately hold off sending 'just the headers' to begin to + * accumulate the body and speed up the overall response, or at + * least wait for the end the session. + */ + return 1; } case HSE_REQ_DONE_WITH_SESSION: @@ -1354,8 +1359,13 @@ APR_BRIGADE_INSERT_TAIL(bb, b); rv = ap_pass_brigade(cid->r->output_filters, bb); cid->response_sent = 1; + return (rv == APR_SUCCESS); } - return (rv == APR_SUCCESS); + /* Deliberately hold off sending 'just the headers' to begin to + * accumulate the body and speed up the overall response, or at + * least wait for the end the session. + */ + return 1; } case HSE_REQ_CLOSE_CONNECTION: /* Added after ISAPI 4.0 */