From MSDN:
“The Abort method cancels a request to a resource. After a request is
canceled, calling the GetResponse, BeginGetResponse, EndGetResponse,
GetRequestStream, BeginGetRequestStream, or EndGetRequestStream method
causes a WebException with the Status property set to
RequestCanceled.”
But if responseStream.BeginRead is in progress, does Abort cancel this read?
Yes, it is affecting reading from a stream. I have tested sample code that was used in msdn HttpWebRequest.Abort Method, and call to
EndReadwas throwing an exception inReadCallBackfunction.