Home / Companies / Cloudflare / Blog / Post Details
Content Deep Dive

When TCP sockets refuse to die

Blog post from Cloudflare

Post Details
Company
Date Published
Author
Marek Majkowski
Word Count
3,707
Language
English
Hacker News Points
21
Summary

In this blog post, the author discusses various scenarios where a TCP connection may notice issues with the other party going away. These scenarios include SYN-SENT, SYN-RECV, idle ESTABLISHED connections, busy ESTABLISHED connections, and zero-window ESTABLISHED connections. The author provides scripts to demonstrate the effects of timeout-related socket options under various network conditions. They also discuss how to tune a TCP connection to ensure that the remote host is actually up and provide tips for debugging networking issues.