Re: Problem when connection dies

Giganews Newsgroups
Subject: Re: Problem when connection dies
Posted by:  Filipe (fili…
Date: Wed, 25 May 2005

Filipe wrote:
> 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?
> Thanks.

I forgot to say that I'm using Indy 9.0.18 and Delphi 6/Kylix 3




In response to

Problem when connection dies posted by Filipe on Wed, 25 May 2005