I have the following test code. I always get the \"Task was cancelled\" error after looping 316934 or 361992 times.
If I am not wrong, there are two possible reasons why
just wanted to share I have had a similar code to load test our servers ,and its a high probability that your requests are timing out. You can set the timeout for your http request to max and see if it changes anything for you. I tried hitting our servers by creating various threads. And it increased the hits but they would all eventually timeout.And also you cannot set a timeout when hitting them on another thread.