[JDEV] client timeouts
Matthias Wimmer
m at tthias.net
Mon Jul 1 10:14:32 CDT 2002
Hallo Sean!
Sean Kirkby wrote:
> Oh, I see. that makes sense. As it turns out, I am indeed using NAT
> in my office, and the server I am connecting to is across the
> continent, so this is probably it.
>
> In any event, some sort of "keep alive" is needed in this situation,
> right? Is sending white space to the XML stream every 60 seconds the
> best way to do this?
It's a solution that shouldn't make problems as white spaces are ignored
by the server.
> Is your suggestion about "TCP Keep Alives" targeted to this problem?
It would solve this problem too. (You can also enable TCP Keep alives at
the client side too, so you don't have to wait for a server that enables
them.)
But the reason why I suggested this was that it would help to detect
"orphan connections" at the server side. If a client disconnects without
logging out of the server or closing the connection to the server (e.g.
if you network connection just breaks) the server doesn't notice this
until it tries to send some more data to the client (e.g. a message is
delivered to the user).
Tot kijk
Matthias
--
Fon: +49-700 77007770 http://matthias-wimmer.de/
Fax: +49-89 312 88654 jabber://mawis@charente.de
More information about the JDev
mailing list