[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 61090] New: mod_proxy POST forwarding ignores HTTP 307 response


            Bug ID: 61090
           Summary: mod_proxy POST forwarding ignores HTTP 307 response
           Product: Apache httpd-2
           Version: 2.4.25
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_http
          Assignee: bugs@xxxxxxxxxxxxxxxx
          Reporter: felipe@xxxxxxxxxxxxxxxx
  Target Milestone: ---

I’ve got an upstream application that sits behind mod_proxy. When a client
POSTs a file upload via a form, that gets proxied to my application: mod_proxy
appears to spool part of the file upload, then it starts sending..

The problem is that my application occasionally sends back a 307 or 308. My
application, once it receives the headers and determines that it needs to
redirect, sends the 307 response then close()s its side of the connection.

>From what I can see in the strace output between Apache and my application,
though, Apache never poll()s to see if the upstream endpoint has sent a
response. It just keeps sending the file upload, which eventually gives back
ECONNRESET, in response to which I get errors in my Apache log, and the client
gets a nasty 502 error.

It seems like Apache should be poll()ing for a read event on the upstream
connection to detect whether it should stop proxying and instead forward on the

You are receiving this mail because:
You are the assignee for the bug.
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx