Better documentation.

This commit is contained in:
Ray J. Greenwell
2026-05-13 14:53:19 -07:00
parent c781b86449
commit 201e6bf766
@@ -30,6 +30,8 @@ public class BasicStreamers
/** /**
* The maximum number of elements allowed in a deserialized array, collection, or map. This * The maximum number of elements allowed in a deserialized array, collection, or map. This
* prevents a malicious client from sending a huge size value to trigger an OutOfMemoryError. * prevents a malicious client from sending a huge size value to trigger an OutOfMemoryError.
* The system property "com.threerings.io.maxContainerSize" be checked at startup and if it
* parses as integer will be used instead of the default value of 65536.
*/ */
public static final int MAX_CONTAINER_SIZE = public static final int MAX_CONTAINER_SIZE =
Integer.getInteger("com.threerings.io.maxContainerSize", 65536); Integer.getInteger("com.threerings.io.maxContainerSize", 65536);