Im calling the async NetworStream.BeginRead. If the portserver im taking to is off this call just hangs - I dont get an exception nor is my callback called reporting 0 bytes read. If in this state I try to send on the stream then my callback
is called and EndRead throws an exception - thats fine - but I cant get that behaviour unless I try a write. The streams underlying socket doesnt show the connection as down.
How to detect that the connection is down? Do I have to poll the streams socket? Is there any other way?
View Complete Post