How do i keep a connection alive in C#? I\'m not doing it right. Am i suppose to create an HttpWebRequest obj and use it to go to any URLs i need? i dont see a way to visit
I had a similar issue when HttpWebRequest.KeepAlive = true was not enough
to keep it alive. The connection stayed on only after I set request.UnsafeAuthenticatedConnectionSharing = true and
ServicePointManager.MaxServicePointIdleTime = 100000;//avoid 0 or low values