[jdev] XEP-0199 (XMPP Ping) to test reliability
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
> > 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 ?
$ cat /proc/sys/net/ipv4/tcp_keepalive_time
$ cat /proc/sys/net/ipv4/tcp_retries1
$ cat /proc/sys/net/ipv4/tcp_retries2
$ cat /proc/sys/net/ipv4/tcp_synack_retries
$ cat /proc/sys/net/ipv4/tcp_syn_retries
There are many more.
Tuning them requires good knowledge of TCP internals.
/\_./o__ Tomasz Sterna
._.(_.)_ im:smoku at xiaoka.com
More information about the JDev