[jdev] XEP-0199 (XMPP Ping) to test reliability
Tomasz Sterna
tomek at xiaoka.com
Wed Jan 23 04:59:42 CST 2008
On Śr, 2008-01-23 at 09:49 +0100, Yann Leboulanger wrote:
> > Other option is immediate detection of broken connection by
> receiving
> > NACK. This also is signalled to the application level.
>
> That sound a bit hard to disconenct when the first packet is not
> received :)
When the receiving party explicitly denies accepting a packet,that means
that there is no connection anymore.
There is nothing more you can do but reconnect.
> you know what "reasonable defaults" means ? some minutes ?
Examples:
$ cat /proc/sys/net/ipv4/tcp_keepalive_time
7200
$ cat /proc/sys/net/ipv4/tcp_retries1
3
$ cat /proc/sys/net/ipv4/tcp_retries2
15
$ cat /proc/sys/net/ipv4/tcp_synack_retries
5
$ cat /proc/sys/net/ipv4/tcp_syn_retries
5
There are many more.
Tuning them requires good knowledge of TCP internals.
--
/\_./o__ Tomasz Sterna
(/^/(_^^' http://www.xiaoka.com/
._.(_.)_ im:smoku at xiaoka.com
More information about the JDev
mailing list