-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 6 Jan 2004 20:55, Tony Yat-Tung Cheung wrote:
I am running a Jabber client over GPRS to jabber.org. I found that if I break the GPRS connection without breaking the TCP/IP connection gracefully, it took close to 30 minutes before jabber.org realizes that I am offline.
Does the current jabberd provide any kind of mechanism for making sure the clients are still alive?
Again, if _all_ you want to do is decrease the amount of time a client can be disconnected before they are noticed, you just have to configure the server to send keep-alives (which are presumably a blank space, just like you do from the client.) So every minute if nothing else is sent, send " ". If the
connection is down it should cause the stream to break, right?
Hi,
Yes, I think the minimal goal is to detect the connection break near real-time from either the client or server.
Does any existing public server send keep-alives? I would like to give it a try. Otherwise I would try it in my own server.
I would test the same approach in my mobile client and see if the connection break would be detected quickly. As the TCP/IP protocol has a window size, I am not sure how quickly sending a space character will detect if the connection is lost. I assume the connection lost will only be detected if enough characters are unacknowledged. Anyway, it is a good start and I would give it a try and see how effective this mechanism is.
If it works, we probably want to be able to have some methods for the mobile client to inform the server the frequency for sending this keep-alives or space character.
Thanks!
Best Regards, Tony Cheung
TX
- -- 'Every sufficiently advanced technology is indistinguishable from magic' - Arthur C Clarke
'Every sufficiently advanced magic is indistinguishable from technology' - Tom Graves
Email: Trejkaz Xaoza <[EMAIL PROTECTED]> Web site: http://xaoza.net/trejkaz/ Jabber ID: [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/+op3mifzwBMPxxoRArQXAKC+WLF4LXja+eI553k7HdrbNDNclgCdH8H5 lqaWj42KdKX5pi/MtVGhDDU= =Y99N -----END PGP SIGNATURE-----
_______________________________________________ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
