I have my own Owi-based Api web server and I'm wondering if I need to change the timeout settings when there are huge file downloads? The client I'm using is reading the response with HttpCompletionOption.ResponseHeadersRead.
During debugging, after I stopped for a while at the breakpoint, I received an exception on the client side while trying to read from the received stream:
Unable to read data from the transport connection: the existing connection was forcibly closed by the remote host.
During debugging, I can reproduce this problem. This happens after about 30 seconds, waiting at the breakpoint after the Get-Request returns to the server.
Is it because of some kind of idle timeout because I am holding onto a breakpoint and not working on the received stream? Or can this happen when I read from a stream, when my collection is slow, and is it taking too long?
source
share