我们公司拥有自己的基准测试工具来衡量api的性能。
目前,我一直在努力处理错误列表:
- The underlying connection was closed: An unexpected error occurred on a receive.
- The underlying connection was closed: An unexpected error occurred on a send.
- The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.
首先,我认为它受应用程序本身的限制,但提供了设置ServicePointManager属性的建议已经存在:
ServicePointManager.Expect100Continue = false;
ServicePointManager.DefaultConnectionLimit = 20000;
ServicePointManager.UseNagleAlgorithm = false;
我不确定,也找不到任何有关系统级限制的文档 - 这至少可以让我开绿灯,建议创建一个可以创建分布式测试的工具。