4 ms·
Granted sticking nginx in front presumely won't help with this issue. Just keep feeding a 4GB file to it and it will crash the back-end. Why does that happen?
by sillysaurus2 13y ago
Granted sticking nginx in front presumely won't help with this issue. Just keep feeding a 4GB file to it and it will crash the back-end.
Why does that happen? nginx can't help here?
- rdtsc 13y agoSee mathrawka's reply (I haven't test it though) BTW, I just ran memory of my server into swap with this: $ dd if=/dev/zero of=2g bs=1M count=2048 $ curl -F "2g=@2g" <myresource> (EDIT: explanation, this creates 2g file then uploads it <myresource> as a file upload -- multipart mime. @ sign just insert the named file data into the form)
- mathrawka 13y agoAnd that is why you should never blindly use bodyParser middleware in production... http://andrewkelley.me/post/do-not-use-bodyparser-with-express-js.html http://andrewkelley.me/post/do-not-use-bodyparser-with-expre...