From dev-return-73137-apmail-httpd-dev-archive=httpd.apache.org@httpd.apache.org Tue Nov 8 02:05:03 2011 Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1FA5A7A3E for ; Tue, 8 Nov 2011 02:05:03 +0000 (UTC) Received: (qmail 34174 invoked by uid 500); 8 Nov 2011 02:05:02 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 34118 invoked by uid 500); 8 Nov 2011 02:05:02 -0000 Mailing-List: contact dev-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 dev@httpd.apache.org Received: (qmail 34110 invoked by uid 99); 8 Nov 2011 02:05:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2011 02:05:02 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 76.96.59.243 is neither permitted nor denied by domain of jim@jagunet.com) Received: from [76.96.59.243] (HELO qmta13.westchester.pa.mail.comcast.net) (76.96.59.243) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2011 02:04:53 +0000 Received: from omta16.westchester.pa.mail.comcast.net ([76.96.62.88]) by qmta13.westchester.pa.mail.comcast.net with comcast id uQsW1h0011uE5Es5DS4a5C; Tue, 08 Nov 2011 02:04:34 +0000 Received: from wbs.roomlinx.com ([207.34.158.154]) by omta16.westchester.pa.mail.comcast.net with comcast id uS4Q1h00e3L9Wnj3cS4Twm; Tue, 08 Nov 2011 02:04:32 +0000 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1251.1) Subject: Re: prefetch proxy From: Jim Jagielski In-Reply-To: Date: Mon, 7 Nov 2011 18:04:23 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <99AABFA8-8F2C-4F34-AB3D-05CCE1DB2CE7@jaguNET.com> References: <1B1ED6D5-E3B3-42D9-95EA-AD748CEF607B@jaguNET.com> To: dev@httpd.apache.org X-Mailer: Apple Mail (2.1251.1) X-Virus-Checked: Checked by ClamAV on apache.org SSL isn't involved, no. On Nov 7, 2011, at 4:28 PM, Jeff Trawick wrote: > On Tue, Nov 1, 2011 at 1:23 PM, Jim Jagielski wrote: >> In mod_proxy_http we have: >>=20 >> /* Prefetch MAX_MEM_SPOOL bytes >> * >> * This helps us avoid any election of C-L v.s. T-E >> * request bodies, since we are willing to keep in >> * memory this much data, in any case. This gives >> * us an instant C-L election if the body is of some >> * reasonable size. >> */ >> temp_brigade =3D apr_brigade_create(p, bucket_alloc); >> do { >> status =3D ap_get_brigade(r->input_filters, temp_brigade, >> AP_MODE_READBYTES, APR_BLOCK_READ, >> MAX_MEM_SPOOL - bytes_read); >> if (status !=3D APR_SUCCESS) { >> ap_log_error(APLOG_MARK, APLOG_ERR, status, r->server, >> "proxy: prefetch request body failed to %pI = (%s)" >> " from %s (%s)", >> p_conn->addr, p_conn->hostname ? = p_conn->hostname: "", >> c->remote_ip, c->remote_host ? = c->remote_host: ""); >> return HTTP_BAD_REQUEST; >> } >>=20 >> apr_brigade_length(temp_brigade, 1, &bytes); >> bytes_read +=3D bytes; >>=20 >> However, I see times when status could be APR_EAGAIN. IMO, it doesn't >> make sense to error out here in that case. Right? >=20 > By chance is this over SSL? >=20 > (Just wondering what input filters you might have.) >=20