httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 56541] Proxy 502's on large file post requests
Date Thu, 22 May 2014 13:42:18 GMT

--- Comment #2 from Yann Ylavic <> ---
Created attachment 31646
Prefetch request body before the backend connection is established/reused

(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 (
> [Mon May 19 13:55:20 2014] [info] [client] (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:
For additional commands, e-mail:

View raw message