]> Cypherpunks.ru repositories - govpn.git/blobdiff - doc/timeout.texi
Ability to use TUN-interfaces under GNU/Linux
[govpn.git] / doc / timeout.texi
index 5fe7fd0df0a91cacfa523a42663f783e999de288..2cb52019d32608cf03ee33118b3987967d480188 100644 (file)
@@ -1,14 +1,18 @@
 @node Timeout
-@section Timeout
+@subsection Timeout
 
 Because of stateless UDP nature there is no way to reliably know if
 remote peer is alive. That is why timeouts are necessary. If no packets
 are sent during timeout period, then remote peer is considered to be
 dead. Timeout option should be synchronized both for server and client.
 
-If there were no packets at all during third part of timeout, then
+If there were no packets at all during fourth part of timeout, then
 special heartbeat packet is sent. So VPN connection should be alive all
-the time, even if there is no traffic in corresponding TAP interfaces.
+the time, even if there is no traffic in corresponding TUN/TAP interfaces.
 @strong{Beware}: this consumes traffic.
 
 Stale peers and handshake states are cleaned up every timeout period.
+
+This applies to TCP connections too: relatively much time can pass until
+we understand that remote TCP peer is suddenly died and did not
+normally terminate connection.