|Subject:||Problem when connection dies|
|Posted by:||Filipe (fili…@silicon.inf.br)|
|Date:||Wed, 25 May 2005|
I have a client application thread that's just a while for retrieving
data from a remote server and sometimes, writing. The data is received
from server, line by line, so I use readLn(#13#10,2000) to get the data
from the server.
But in some cases, when the connection to the server dies ( i.e a
firewall restart or anything ) my application don't get notfied that it
is disconnected and just keeps trying to read/write data to that socket.
I've already tested with CheckForDisconnect(true,true) to break the flow
when this happens, but without success.
Is there another way to do this check?