Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Re: How to exit gracefully on listener thread when server crashes.
| Subject: | Re: How to exit gracefully on listener thread when server crashes. |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Fri, 18 Aug 2006 12:59:02 |
"Gerhard Venter" <IeatSpam4breakfast@spam.com> wrote in message
news:44e60f42$1@newsgroups.borland.com...
> Do you think it would be a good idea to send the keepalive
> packet after the readtimeout occured?
You are performing the read timeout on the server side. The client should
be the one to send the keep alive, indicating that it still wishes to remain
connected to the server.
> As I understand it the Run thread reads for 5000ms gets out
> and gets back into a read again for 5000ms.
That is correct. That is what you should be doing, and what your original
code was doing anyway.
Gambit
none