logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

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

or

Bitcoin

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

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: client -- chunked -- apache -- content-length -- proxy
Author
renelies



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
Moderator


Joined: 19 Jan 2006
Posts: 7373
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


Reply to topic   Topic: client -- chunked -- apache -- content-length -- proxy View previous topic :: View next topic
Post new topic   Forum Index -> Apache