The get task will cause a "The operation has timed out." error to occur when the read takes longer than the default. The timeout attribute for the get task needed to be additionally assigned to the ResponseStream.ReadTimeout property, once the ResponseStream was obtained.
Also, I additionally added try + finally to the creation of each of the important objects to ensure the underlying was properly Closed upon completion. There are known errors with unclosed HttpWebResponse objects left unclosed.
I hope you will consider these changes for the core.
Log in to post a comment.