Re: [Web-SIG] Implementing File Upload Size Limits

2008-11-27 Thread Robert Brewer
Graham Dumpleton wrote: > 2008/11/28 Robert Brewer <[EMAIL PROTECTED]>: > > CherryPy's wsgiserver will read any remaining request body (which the > > application hasn't read) before sending response headers. > > A WSGI application could technically want to send response headers and > only then rea

Re: [Web-SIG] Implementing File Upload Size Limits

2008-11-27 Thread Graham Dumpleton
2008/11/28 Robert Brewer <[EMAIL PROTECTED]>: > Brian Smith wrote: >> Randy Syring wrote: >> > Hopefully you can clarify something for me. Lets assume that the >> > client does not use '100 Continue' but sends data immediately, after >> > sending the headers. If the server never reads the request

Re: [Web-SIG] Implementing File Upload Size Limits

2008-11-27 Thread Robert Brewer
Brian Smith wrote: > Randy Syring wrote: > > Hopefully you can clarify something for me. Lets assume that the > > client does not use '100 Continue' but sends data immediately, after > > sending the headers. If the server never reads the request content, > > what does that mean exactly? Does the

Re: [Web-SIG] Implementing File Upload Size Limits

2008-11-26 Thread Brian Smith
Brian Smith wrote: > 2008/11/26 Brian Smith <[EMAIL PROTECTED]>: > > Under Apache CGI or mod_wsgi, in many situations you will get a > > deadlock in this scenario. > > It isn't 'many situations', it is a quite specific situation. Right. I meant that it can happen quite often (every time) that si

Re: [Web-SIG] Implementing File Upload Size Limits

2008-11-25 Thread Graham Dumpleton
2008/11/26 Brian Smith <[EMAIL PROTECTED]>: > Randy Syring wrote: >> Hopefully you can clarify something for me. Lets assume that the >> client does not use '100 Continue' but sends data immediately, after >> sending the headers. If the server never reads the request content, >> what does that me

Re: [Web-SIG] Implementing File Upload Size Limits

2008-11-25 Thread Andrew Clover
Brian Smith wrote: Under Apache CGI or mod_wsgi, in many situations you will get a deadlock in this scenario. Under IIS CGI it's considerably more likely. The output buffer you get is smaller than Apache/Linux (at least on Win2K3 it's only 2KB), so even a relatively small error page spat out

Re: [Web-SIG] Implementing File Upload Size Limits

2008-11-25 Thread Brian Smith
Randy Syring wrote: > Hopefully you can clarify something for me. Lets assume that the > client does not use '100 Continue' but sends data immediately, after > sending the headers. If the server never reads the request content, > what does that mean exactly? Does the data get transferred over th

Re: [Web-SIG] Implementing File Upload Size Limits

2008-11-22 Thread Randy Syring
[forgot to copy list] Graham Dumpleton wrote: 2008/11/22 Randy Syring <[EMAIL PROTECTED]>: I am looking for opinions and thoughts on best practice for limiting file upload size. I have a few considerations: If you use Apache/mod_wsgi to host your WSGI application, the best way of ha

Re: [Web-SIG] Implementing File Upload Size Limits

2008-11-22 Thread Graham Dumpleton
2008/11/22 Randy Syring <[EMAIL PROTECTED]>: > I am looking for opinions and thoughts on best practice for limiting file > upload size. I have a few considerations: > > Ultimately, I would want my application with my method of handling forms to > be able to give the user a message that the file si

Re: [Web-SIG] Implementing File Upload Size Limits

2008-11-22 Thread Randy Syring
I did find this: http://wiki.pylonshq.com/display/pylonscookbook/A+Better+Way+To+Limit+File+Upload+Size Which was good, but still leaves some unanswered questions: * What if one is not using the paste http server? * This method gives an unfriendly response. What would be the best me

[Web-SIG] Implementing File Upload Size Limits

2008-11-21 Thread Randy Syring
I am looking for opinions and thoughts on best practice for limiting file upload size. I have a few considerations: * Ultimately, I would want my application with my method of handling forms to be able to give the user a message that the file size was too big. That means that howe