Closed rspier closed 4 months ago
It might be better to set MOJO_MAX_MESSAGE_SIZE to an appropriate size, too (cf. https://metacpan.org/pod/Mojo::Message#max_message_size)
Setting max_message_size doesn't seem to work for me. My local PAUSE accepts no matter how large a file is.
@rspier, do you remember what kind of failture you saw from Plack/mojo when you uploaded a 200mb file?
It was a giant mojo stack trace.
Today, I can't replicate it. (Yay?) I was just able to upload 200MB of null bytes.
This is actually controlled by this:
lib/pause_2017/PAUSE/Web.pm
14: $app->max_request_size(0); # indefinite upload size
So my stack trace must have been a fluke.
The nginx change should be sufficient.
nginx defaults to 1mb client_max_body_size which is very limiting for the large POSTs that PAUSE requires.
Raise to 250mb, which is a little larger than the largest files.
Note: an upload of a 200mb file failed, but in Plack/mojo, not nginx as before. An upload of 25mb (bigger than the average perl5 release) was fine.