I had a low performance problem with HTTP requests on .NET. The HTTP GET request to a REST API on the localhost took about 500 ms to complete. I spent a lot of time to fix i
When you set HttpWebRequest.KeepAlive = true the header set is Connection: keep-alive
HttpWebRequest.KeepAlive = true
When you set HttpWebRequest.KeepAlive = false the header set is Connection: close
HttpWebRequest.KeepAlive = false
So you will need
_http.DefaultRequestHeaders.Add("Connection", "close");