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 -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_filter processes segmented tcp response
Author
chrissmith51



Joined: 28 May 2014
Posts: 7

PostPosted: Wed 14 Jan '15 21:56    Post subject: mod_filter processes segmented tcp response Reply with quote

Hi,

I've made an output content filter using mod_filter to process a response from my proxy and insert our company logo at the end of a fetched webpage.

However, when a large HTTP request is made, the reverse proxy works fine, but the request will be broken into TCP segments to be transported across the network. Each of these segments is processed by my filter, which fails until it reaches the final segment (i.e. I look for the closing body tag).

How can I tell my filter to ignore TCP segments and only process the resulting re-assembled HTTP response?
Back to top
James Blond
Moderator


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

PostPosted: Sat 17 Jan '15 23:27    Post subject: Reply with quote

Disable keepAlive and or choose http/1.0 so the front end server has to send the request at ones and not in chunks.
Back to top
chrissmith51



Joined: 28 May 2014
Posts: 7

PostPosted: Sun 18 Jan '15 10:58    Post subject: Reply with quote

Ta!
Back to top
James Blond
Moderator


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

PostPosted: Sun 18 Jan '15 16:23    Post subject: Reply with quote

chrissmith51 wrote:
Ta!


Means what?
Back to top


Reply to topic   Topic: mod_filter processes segmented tcp response View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules