On May 25, 2007, at 10:08 PM, Joe Schaefer wrote:

Try experimenting with using/not-using $r->discard_request_body
before sending your output.

Thanks Joe!

That helps a bit , but creates a new problem:

I think what happens is this:
        without discard_request_body :
web application immediately detects overlimit , does a connection reset
                        curl still fetches the page
                        safari spins forever
                        firefox displays a connection reset error
        with discard_request_body :
web application detects overlimit, but it reads a lot more of the body than it should this doesn't manifest itself outright on small files ( 1mb ), but when I posted the FreeBSD 6.2 disc image ( 670mb ) , it was clear that the webapp was hanging while the client still sent data.

is there a way to guage how much of a the body has been read by apache ? the UPLOAD_HOOK doesn't seem to be stable and hook_data is unsupported . i couldn't find anything in the core mp api.

by the time uploads take alone, i do know that something odd is going on, and more than 200k is being read: <1s to display error: Content-Length header (546500) exceeds configured max_body limit (200000) 3s to display error: Content-Length header (72727196) exceeds configured max_body limit (200000) 6s to display error: Content-Length header (670108355) exceeds configured max_body limit (200000)



// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| SyndiClick.com
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


Reply via email to