Sep 14, 2020
Jan 15, 2021
Closed, Fixed and tested
It looks like it is related to Response.Flush called. When commenting out this line, it starts to work.
Similarly, when adding a Response.Flush() call after the synchronous transmit-method that will also start failing. Otherwise, when it copies with stream.CopyTo(), it will read/write to the stream without a flush and that works as expected.
Steps to reproduce
File is partially downloaded or browser reacts with a network error.