diff --git a/Demo/Program.cs b/Demo/Program.cs
index 155e269..c2bb2ee 100644
--- a/Demo/Program.cs
+++ b/Demo/Program.cs
@@ -43,7 +43,7 @@ internal class Program
var rs = client.Invoke<Int32>("Big/Sum", new { a = 123, b = 456 });
XTrace.WriteLine("{0}+{1}={2}", 123, 456, rs);
- //Big Json Test
+ //Big Json Test 当返回值json超级大10MB 报错:System.Exception:“解码错误,无法找到服务名!” 小json一切正常
var resBigJsonTest = client.Invoke<string>("Big/BigJsonTest");
XTrace.WriteLine($"resBigJsonTest.Length={resBigJsonTest.Length}");
}
@@ -78,11 +78,16 @@ internal class Program
return (ArrayPacket)buf;
}
+ /// <summary>
+ /// 当循环1000次 拼接 就报错超时了, System.TimeoutException:“请求[Big/BigJsonTest]超时(01 Seq=02 [32](8, 16)<16>)!”
+ /// 当循环10次拼接 正常
+ /// </summary>
+ /// <returns></returns>
public string BigJsonTest()
{
StringBuilder sb = new StringBuilder();
//拼接10万次 就报错了
- for (int i = 0; i < 100000; i++)
+ for (int i = 0; i < 100; i++)
{
sb.AppendLine("big json big json big json big json big json big json big json big json big json big json big json big json big json big json big json big json big json big json big json ");
}