Daily challenges →
🔌 Networking hard ⚡ 70 XP

What is the difference between TCP keepalive and HTTP keep-alive?

Despite the similar names they solve different problems: TCP keepalive (SO_KEEPALIVE, default probes after ~2 hours) detects vanished peers and keeps NAT/firewall entries alive, while HTTP keep-alive is connection reuse to avoid handshake overhead.

🌊 This is a free sample — 1015+ more questions on DevOps Ocean

Sign in free to practice the full question bank with daily challenges, XP, streaks, duels and a global leaderboard.

Practice the full bank — free →