multer (1.4.1) hangs on malformed POST data
See original GitHub issueMulter hangs on malformed POST data. To reproduce the problem just run this script against any multer enabled URL.
$ multer-hang.sh <any-multer-post-url>
The script uses a minimal real world payload produced by this IE bug.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Uncaught exception on malformed multipart error on prod env ...
My aim is to crash the server on local once so that I can add exception handlers to avoid crashes on prod env....
Read more >This version has been deprecated - multer - npm
Author message: Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6 ...
Read more >body-parser | Yarn - Package Manager
Parse incoming request bodies in a middleware before your handlers, available under the req.body property. Note As req.body 's shape is based on...
Read more >nettoyage repos · 05c936003a - mytinydc-openvpn - Gitea: Git for ...
1.4.1 / 2014-06-19. ================== ... [multer](https://www.npmjs.org/package/multer#readme) ... This typically occurs when the request is malformed,.
Read more >Untitled
Berthierite mineral data, Christ the king high school uniform, Montmartre paris safe ... Son yun ju instagram, Energyxt 1.4.1 download, Indian city states, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I agree with @gireeshpunathil assessment!
Basically we cannot really do anything else then waiting for the timeout if the client says “I’m going to send you 2000 bytes”, then only sends 100 bytes…
happy to reopen if more information surfaces!
we (@HarshithaKP and I) did some further debugging on this and found the following:
As the request is malformed (less data than it claimed), none of these preparations are used anytime - basically nothing happens.
the scenario will continue until one of the entity times out.
I see no issues here, other than the resources being held up at server for a duration that is longer than desired; but that is where the timeout tuning becomes important.
In short, my assessment is that things are working as designed; however, would love to hear from @wesleytodd or others. thanks!