Re: [mp2] aborting a file upload

2007-03-08 Thread Issac Goldstand
I'm not positive, but I think it's dangerous as it can screw up pipelined requests - that's why discard_request_body exists. I've cc-ed [EMAIL PROTECTED] as all the smart HTTP people hang out there :-) and maybe one of them can either confirm or correct that statement. Issac Matt Williamson w

RE: [mp2] aborting a file upload

2007-03-07 Thread Matt Williamson
I wrote a filter which I think does the trick. It seems to work. In the filter I send end of stream (eos) if the content length is too large, otherwise just pass the data along. The filter is registered as a PerlInputFilterHandler, which according to the docs only gets called on the body, not the h

Re: [mp2] aborting a file upload

2007-03-06 Thread Issac Goldstand
I'm not sure it's possible to abort the read. I think the server must finish the read before the client will accept any response data. IIRC, discard_request_body still performs a read on the socket; it just doesn't do anything with the read data. Issac Matt Williamson wrote: > I am trying to

Re: [mp2] aborting a file upload

2007-03-03 Thread Jonathan Vanasco
On Mar 2, 2007, at 8:28 PM, Matt Williamson wrote: Thanks, but I am afraid I do not understand your reply. Should a body with size > POST_MAX cause the upload to fail? Does it send an error back to the client? It did not appear to do either of those things for me. In my situation I want to st

RE: [mp2] aborting a file upload

2007-03-02 Thread Matt Williamson
ent, just not accept the file! What is a 'fat' apr object? Thanks Matt -Original Message- From: Jonathan Vanasco [mailto:[EMAIL PROTECTED] Sent: Friday, March 02, 2007 4:41 PM To: Matt Williamson Subject: Re: [mp2] aborting a file upload On Mar 2, 2007, at 6:37 PM, Matt Wil

[mp2] aborting a file upload

2007-03-02 Thread Matt Williamson
I am trying to write a mod_perl handler to take POST requests which have some parameters encoded in the url string, and a body that needs to be saved to a file. It is not like a conventional file upload from a form. I want to implement a limit on the size of the body that can be uploaded. However,