httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56541] Proxy 502's on large file post requests
Date Thu, 22 May 2014 13:42:18 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56541

--- Comment #2 from Yann Ylavic <ylavic.dev@gmail.com> ---
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


Mime
View raw message