Apache Lounge



Forum Index Downloads Search Register Log in  RSS Apache Lounge

Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.



A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.

client -- chunked -- apache -- content-length -- proxy

Post new topic   Reply to topic    Apache Forum Index -> Apache

View previous topic :: View next topic  
Author Message

Joined: 18 Oct 2018
Posts: 1
Location: Netherlands, Eindhoven

PostPosted: Thu 18 Oct '18 11:23    Post subject: client -- chunked -- apache -- content-length -- proxy Reply with quote

We have an issue when a client posts a large file to a server using a slow connection. We have a VirtualHost with a RewriteRule to a Balancer with a single BalancerMember. At the other end there is a Ruby on Rails application using Puma as webserver.

Debugging lead me to discover that apache starts talking to the proxy directly when the client connects. The proxy at some time disconnects in which an error is sent back.

A solution would be to have Apache use a content-type chunked when talking to the client but accept the full data first before talking to the proxy. For that I've tried different SetEnv's (proxy-sendchunked 0, proxy-sendcl 1, force-proxy-request-1.0 1, downgrade-1.0 1) of which none resolved my problem. When using curl -0 (force http 1.0)

I hope anybody here could help me in determining if it's even possible to have Apache accept a full request BEFORE it connects to a proxy?
Back to top
James Blond

Joined: 19 Jan 2006
Posts: 6597
Location: Germany, Next to Hamburg

PostPosted: Wed 27 Mar '19 16:47    Post subject: Reply with quote

Disable KeepAlive (that counts for apache itself). I don't know how the proxy module sends the data to the reversed server.
Back to top

Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1