summaryrefslogtreecommitdiff
path: root/What is TCP KeepAlive.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-06-21 11:11:59 +0200
committerJasper Ras <jras@hostnet.nl>2025-06-21 11:11:59 +0200
commitfbb81e5f2c5542d86ffbb0cb8e05ce2640ed65de (patch)
tree6c5951af8530f003b8e3311c62d75802052ba363 /What is TCP KeepAlive.md
parent0d389e1d6c1aed4a92f82d9711f4564a12390fcd (diff)
vault backup: 2025-06-21 11:11:59
Diffstat (limited to 'What is TCP KeepAlive.md')
-rw-r--r--What is TCP KeepAlive.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/What is TCP KeepAlive.md b/What is TCP KeepAlive.md
new file mode 100644
index 0000000..6b25179
--- /dev/null
+++ b/What is TCP KeepAlive.md
@@ -0,0 +1,9 @@
+TCP KeepAlive: Keeps TCP Alive.
+
+A timer is set up together with the TCP connection, if the timer reaches zero a probe packet is sent without any data. It has a flag set for ACK. The peer only has to support TCP/IP, not specifically keepalive. If alive it will respond with a zero data packet as well that has the ACK flag set.
+
+Because TCP lets your program handle a stream, not packets, a zero length data packet is not dangerous for the program listening on the socket.
+
+Two use cases for keepalive:
+- Detecting dead peers
+- Prevent disconnects due to inactivity \ No newline at end of file