[Python-Dev] stdlib socket usage and "keepalive"
Jesus Cea
jcea at jcea.es
Tue Apr 13 00:41:40 CEST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/13/2010 12:09 AM, Guido van Rossum wrote:
> Also I recall reading that keepalives are a very
> controversial concept (since they may actually break connections
> unnecessarily if the internet merely has a hiccup).
That is true, but parameters are usually very conservative.
In standard Ubuntu box I host out there, the (default) parameters used
(if I activate keepalive):
+ Send the keepalive only after 1800 seconds of complete connection
inactivity.
+ After starting sending keepalives, send NINE probes.
+ Between probes, wait at least 75 seconds.
So you have to have 30 minutes of idle and then at least 11 minutes of
no conectivity to "lose" the connection.
- --
Jesus Cea Avion _/_/ _/_/_/ _/_/_/
jcea at jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/
jabber / xmpp:jcea at jabber.org _/_/ _/_/ _/_/_/_/_/
. _/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQCVAwUBS8OhpJlgi5GaxT1NAQIb9AP7BLUAFzsltPr1omW+4+Ox7gF/lLDqNR5V
DXejCPJ2oBZdyebcwCSS1djh0thks8nRzG7oq61eA4c+Ax5mvsvW0cY5+BfNcrds
j6HwVJK+zgTX6NiO7VdGEysxfYHLbJcJ7PfoOHRWhYzolA7VSJriy8kfvgretTZQ
qJreRMaPai8=
=MQPh
-----END PGP SIGNATURE-----
More information about the Python-Dev
mailing list