Skip to content

Commit

Permalink
Make MAX_STRING_NODE_LENGTH configurable (#9995)
Browse files Browse the repository at this point in the history
Make `ServerSerializationStreamWriter.MAX_STRING_NODE_LENGTH`
configurable, to better work around #9578 and allow real JSON in all
cases.
This PR is a follow-up to #9961 (making the rpc serialization chunk size
configurable).

Workaround #9578 
Followup #9961
  • Loading branch information
lgemeinhardt committed Sep 5, 2024
1 parent 4cc3679 commit be05c1e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ abstract void write(ServerSerializationStreamWriter stream, Object instance)
* This exists to work around a Rhino parser bug in the hosted mode client
* that limits string node lengths to 64KB.
*/
private static final int MAX_STRING_NODE_LENGTH = 0xFFFF;
private static final int MAX_STRING_NODE_LENGTH =
Integer.getInteger("gwt.rpc.maxStringNodeLength", 0xFFFF);

static {
/*
Expand Down

0 comments on commit be05c1e

Please sign in to comment.