I just converted the PageKit application (mod_perl) to Plack . This means that I now need some way to provide the POST_MAX / MAX_BODY that Apache2 :: Reques t previously handled. The easiest way to do this is probably to just put nginx in front of the application, but the application is already behind HAProxy , and I donβt see how to do it with HAProxy.
So my question is: how can I achieve the maximum body size in Plack :: Middleware without first reading the entire request text ?
In particular, I am interested in downloading files. Checking the size with Plack :: Request :: Upload is too late , because at that moment the whole body would be read. The application will be deployed through Starman , so psgix.streaming should be true .
oalders
source share