Windows Server 2008 R2 Standard

ASP.NET C# app

var request = (HttpWebRequest)WebRequest.Create({uri});
var stream = request.GetRequestStream();

GetRequestStream() sometimes throws exception :

The operation has timed out

My understanding is this is a pure client-side operation. GetRequestStream() is retrieving a Stream to write the request body. The actual http request has not yet been initiated. So how can the operation timeout ?

Related posts

Recent Viewed