I have this code in console application and it runs in a loop
try { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(search); request
After adding
request.KeepAlive = false; request.ProtocolVersion = HttpVersion.Version10;
it works fine..
I found it form this blog post
WebRequest and Unable to read data from the transport connection Error