On Wednesday 01 November 2006 20:08, Tomasz Sterna wrote:
> On 11/1/06, Scott Robinson <[EMAIL PROTECTED]> wrote:
> > What is the proper method of performing a ping across a client XMPP
> > connection. That is, from a sever's perspective, if a client
> > mysteriously and unexpectedly drops off the Internet, it won't know it
> > until the TCP connection times out.
>
> Isn't TCP enough to handle the situation?
> Why do you need to implement it on application level?

If 2 machines are connected over TCP/IP connection and there is one
or more firewalls in between, try to power-off one of the machines.
Another side will not notice connection drop.

Default TCP/IP timeout is 300sec.

This kind of "power-off" disconnections happen surprisingly often.
And this is especially problem for network servers serving many
simultaneous connections as such clients reconnect in a few
seconds so server ends up with many dead connections...

Artur
-- 
Artur Hefczyc
http://www.tigase.org/
http://wttools.sf.net/

Reply via email to