How do I remove the delay between HTTP Requests when using Asynchronous actions in ASP.NET?

Viewed 1763

I am using HttpClient to send a GET request to a server inside of a while loop

while (cycle < maxcycle)
{

    var searchParameters = new ASearchParameters
    {
        Page = cycle++,
        id = getid
    };

    var searchResponse = await Client.SearchAsync(searchParameters);

}

and the SearchAsync contains

public async Task<AuctionResponse> SearchAsync()
{
    
    var uriString = "Contains a https url with parameters"
    var searchResponseMessage = await HttpClient.GetAsync(uriString);

    return await Deserialize<AuctionResponse>(searchResponseMessage);

    
}

The thing is after every request there is a delay before the next request is started. you can see this in fiddler timeline and also in fiddler there is "Tunnel To" example.com:443 before every request

enter image description here

Question : Why is there a delay and how to remove it ?

2 Answers
Related