Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Sep : Connection being disconnected.
| Subject: | Connection being disconnected. |
| Posted by: | "York" (offi..@onlinebg.info) |
| Date: | Thu, 7 Sep 2006 08:46:53 |
Hello,
We are using Indy 9, D7. Both client and server are developed by us.
Clients connect to the server using IdTCPClient and they should stay
connected (may be up to 2/3 hours).
The data transmitted over the connection is always from server->clients.
So the clients have a "reader thread" and are always reading and processing
the data.
The data however comes in different intervals of time. Between each data
packet there may be 2, 10, 15 or more minutes.
Sometimes we noticed that a few number of our clients are disconnected from
the server.
The server triggers an OnException event with the message "Disconnected"
This only happens when the interval between the data packets is long enough.
My guesses are that "something" causes the connection to disconnect when no
activity.
I also guess that this is some kind of a router or a firewall. Am I right
???
Is this likely to happen when no activity over a TCP connection?
It does not happen for all of the client but only for a small percentage
(about 10-15%)
Will a ping/pong mechanism solve the problem?
Any suggestions are welcome.
Kind Regards