We are using a Windows Service to make very frequent HTTP calls to an internal REST service (20-40 calls per second), but notice a long delay in getting responses after the serv
How can we ensure that ports are reused? Not set the connection limit to a value that almost guarantees that they won't be.
It looks like someone has monkeyed with the ServicePointManager at some point. I'd limit the ServicePoint for this origin: to encourage http pipelining and connection reuse:
ServicePointManager.FindServicePoint(Uri).ConnectionLimit = someSensibleValue;