Description
Hey,
I'm kinda worried about the following thing. Let's say a user sends a 20MB message of any type, I think as how it is now it will store the final 20MB in the RAM memory, logical to me, using a ByteBuffer. This, i think, can cause an issue when multiple clients are sending big amounts of data. Is there a way to limit the size of a message incoming at the server, being more precise: being stored temporary in the memory? What if the size is bigger than 1GB? Is this even allowed by most browsers?
I saw you already did some throttling.
Also, just curious. Why the size of 16384 bytes for the rec-buffer of the socket? Is there a logical explanation? Great work ;)
Expected Behavior
Throttle setting
Possible Solution
Throttle setting
Context
Probably will give issues when this isn't properly managed. If already implemented which class should i be in and which line ~ area.