You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Sternath, Elmar (NSN - DE/Munich)" <el...@nsn.com> on 2010/12/01 13:11:16 UTC

[users@httpd] pass request body failed

Hi,

We use Apache 2.2.16 as a reverse proxy on both UNIX and Windows
environment (by use of mod_proxy). In both environments, we have trouble
when uploading big files (size 10 MB, upload time from client to proxy
approx. 40 sec.) to the proxied backend application in Internet. We
already figured out that the problem only occurs when the upload time
from client to proxy is long enough (i.e. if we upload the same file
from Intranet, it takes only 10 sec. and then it works properly) and
when the file is big enough (for 1 MB files it works properly).
Furthermore, if we bypass the proxy and upload the same file directly to
the backend application, it works properly also.

The Apache error log tells us the following:

APR does not understand this error code: proxy: pass request body failed
to 127.0.0.1:50000 (localhost)

This message is clearly understandable, my question now is, how can we
analyze what's going wrong here?? Obviously, we're facing some kind of
miscommunication between the proxy and the backend application. Are
there any timing/sizing parameters we can change?

Thanks in advance for your good ideas!
Elmar

RE: [users@httpd] pass request body failed

Posted by "Sternath, Elmar (NSN - DE/Munich)" <el...@nsn.com>.
Hi,

Thanks for that helpful post, changing proxy setting to proxy-sendchunks
did actually the trick! However I wonder which timeout could have been
hit, at least KeepAliveTimeout and ProxyTimeout were set to a higher
value than these 40 secs. Maybe a timeout on backend site...

Br,
Elmar

-----Original Message-----
From: ext Nick Kew [mailto:nick@webthing.com] 
Sent: Wednesday, December 01, 2010 1:46 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] pass request body failed


On 1 Dec 2010, at 12:11, Sternath, Elmar (NSN - DE/Munich) wrote:

> Hi,
> 
> We use Apache 2.2.16 as a reverse proxy on both UNIX and Windows
environment (by use of mod_proxy). In both environments, we have trouble
when uploading big files (size 10 MB, upload time from client to proxy
approx. 40 sec.) to the proxied backend application in Internet. 

What proxy-sendcl/proxy-sendchunks setting are you using?

If you use proxy-sendcl, apache has to buffer all the data and you could
be hitting a timeout.
If proxy-sendchunks, does your backend support chunked encoding?

-- 
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] pass request body failed

Posted by Nick Kew <ni...@webthing.com>.
On 1 Dec 2010, at 12:11, Sternath, Elmar (NSN - DE/Munich) wrote:

> Hi,
> 
> We use Apache 2.2.16 as a reverse proxy on both UNIX and Windows environment (by use of mod_proxy). In both environments, we have trouble when uploading big files (size 10 MB, upload time from client to proxy approx. 40 sec.) to the proxied backend application in Internet. 

What proxy-sendcl/proxy-sendchunks setting are you using?

If you use proxy-sendcl, apache has to buffer all the data and you could be hitting a timeout.
If proxy-sendchunks, does your backend support chunked encoding?

-- 
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org