Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Jan : Re: Connection reset by peer
| Subject: | Re: Connection reset by peer |
| Posted by: | "Guillem" (guillemvicens-nospam@clubgreenoasis.com) |
| Date: | 1 Feb 2007 01:16:11 |
Graham Harris wrote:
> Hi
>
> How do I recover from the abover error, as when I have encountered
> this error I have to restart the client application when my server
> bombs out sometimes.
> I am using Indy 10.1.6 in Delphi 2005/2006
>
> TIA
> Graham Harris
This error 10054 (WSAECONNRESET) can be caused by:
- a read error: the server could not read what the client sent
- a write error: the server could not write to the client
- a ping timeout
- the server app was stopped
- the server computer was rebooted
- the network interface is disabled
- the remote host uses a hard close
Almost none of these causes can be controlled by your client. The best
solution is to wrap your code in try..finally blocks to manage the
exception.
--
Best regards :-)
Guillem Vicens Meier
Dep. Informática Green Service S.A.
www.clubgreenoasis.com
none