[THRIFT-5871] Improve MAX_MESSAGE_SIZE_CHECK and friends
diff --git a/lib/netstd/Thrift/Protocol/TJSONProtocol.cs b/lib/netstd/Thrift/Protocol/TJSONProtocol.cs
index 170f294..37424a7 100644
--- a/lib/netstd/Thrift/Protocol/TJSONProtocol.cs
+++ b/lib/netstd/Thrift/Protocol/TJSONProtocol.cs
@@ -838,8 +838,8 @@
{
switch (type)
{
- case TType.Stop: return 0;
- case TType.Void: return 0;
+ case TType.Stop: return 1; // T_STOP needs to count itself
+ case TType.Void: return 1; // T_VOID needs to count itself
case TType.Bool: return 1; // written as int
case TType.Byte: return 1;
case TType.Double: return 1;