Return-Path: X-Original-To: apmail-httpd-bugs-archive@www.apache.org Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CCCAD11477 for ; Thu, 22 May 2014 13:42:39 +0000 (UTC) Received: (qmail 81532 invoked by uid 500); 22 May 2014 13:42:39 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 81486 invoked by uid 500); 22 May 2014 13:42:39 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 81478 invoked by uid 99); 22 May 2014 13:42:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2014 13:42:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2014 13:42:38 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 875441C987; Thu, 22 May 2014 13:42:18 +0000 (UTC) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: [Bug 56541] Proxy 502's on large file post requests Date: Thu, 22 May 2014 13:42:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: mod_proxy X-Bugzilla-Version: 2.5-HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ylavic.dev@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=56541 --- Comment #2 from Yann Ylavic --- Created attachment 31646 --> https://issues.apache.org/bugzilla/attachment.cgi?id=31646&action=edit Prefetch request body before the backend connection is established/reused (trunk) (In reply to Tyler Wymer from comment #1) > [Mon May 19 13:54:19 2014] [debug] proxy_util.c(2576): proxy: HTTP: > connection complete to 10.177.30.190:9010 (10.177.30.190) > [Mon May 19 13:55:20 2014] [info] [client 10.177.30.190] (32)Broken pipe: > core_output_filter: writing data to the network It seems that your environment triggers a connection abort (by the backend) in the meantime between the connection is created/reused (by mod_proxy) and the request data are effectively sent (and flushed) on that connection. During that meantime, mod_proxy prefetches up to 16Kbytes of the body but won't forward anything (including the request line/headers already available) until this is complete. If that operation takes long time and/or the forwarded data are bufferized in httpd's output queue until some size, the backend may timeout the connection and close it. Could you try the attached patch which moves the prefetch before the backend connection is established/reused (so to minimize the race condition between establishing/reusing a connection and sending data on it), and allows to SetEnv proxy-flushall to tell mod_proxy not to flush everything forwarded? -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org