Understanding TCP, HTTP, Sockets, and Socket Connection Pools
This article walks through the OSI model, explains TCP's three‑way handshake and four‑way teardown versus UDP, clarifies TIME_WAIT behavior and kernel tuning, compares short and long socket connections with heartbeats, and demonstrates building a custom protocol and a Node.js socket connection pool using generic‑pool.
