Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with "Ipconfig /release"

0 views
Skip to first unread message

Franck C

unread,
Dec 19, 2005, 5:24:41 AM12/19/05
to
Hello,

I have a TCP client and a TCP Server. Both use Indy 9.
The client connect on the server and then I type "Ipconfig /release" in
the command line on the client machine --> the client see that it is
disconnected but not the server, then we have a ghost connection which
is never closed. How could I detect that the connection have been lost
on the server without sending datas ?

Thanks

Franck

Dirk Claessens

unread,
Dec 19, 2005, 4:56:49 AM12/19/05
to
Verily, on Mon 19 Dec 2005 11:24:41a, Franck C wrote in
borland.public.delphi.internet.winsock
[news:43a68a93$1...@newsgroups.borland.com]:

That's how TCP/IP works. When a client (or the network) suddenly dies,
the server socket will not see this, unless data are being sent. Your
only options are:
- Set up a keep-alive scheme.
- Periodically disconnect/reconnect and trap the error.


--
Dirk.
No trees were killed in the creation of this message;
however, many electrons were terribly inconvenienced.
http://users.pandora.be/dirk.claessens2

Danijel Tkalcec [RTC]

unread,
Dec 19, 2005, 7:05:31 AM12/19/05
to

This is why all RTC SDK connection components have built-in timeout
functionality, which will close the connection in case it's idle for some
time (user-defined properties). The only thing you would need to do is
specify how long you will tolerate an idle connection before it will be
closed.

Also, RTC SDK clients have a built-in reconnect functionality, which ensures
that clients will re-establish a connection when needed and automaticaly
re-post aborted requests up to a specified number of times. This way, there
is no need for special handling of situations when connections are lost,
it's all handled internaly by the RTC SDK.

--
Danijel Tkalcec
http://www.deltasoft.hr/rtc/author.htm

RealThinClient components
-------------------------------------------
* The Easiest way to build Internet-enabled applications
- Clients, Stand-alone Servers, ISAPI extensions -
> Write and Call Remote Functions
> Download and Upload Files
> Single- and Multi-Threaded mode
> Firewall friendly - all over HTTP
> Stress-tested for highest stability

http://www.deltasoft.hr/rtc
http://www.deltasoft.hr/rtc/forum


0 new messages