our company have it's own benchmark tool to measure performance of api.
Currently I've struggle with list of errors:
- 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.
At first place I've thinked it is limited by application itself, but provided suggestions to set ServicePointManager properties are already there:
ServicePointManager.Expect100Continue = false;
ServicePointManager.DefaultConnectionLimit = 20000;
ServicePointManager.UseNagleAlgorithm = false;
I'm not sure and cannot find any documentation about limitation on system level - which could give me green light to at least, suggest creating a tool with possibility to create a distributed tests.