After reading this post about the inherent problems of TCP connection termination, I almost feel sorry for the protocol. It seems to be trying so hard, but doomed for inevitable failure.
Martin Sustrik goes through all the reasons this is problematic in great detail. His main takeaway is that the symmetrical nature of TCP termination call can’t be consistently reliable. Really well thought out, plus the diagrams really help visualize a lot of the problems.
Martin Sustrik comments:
The shortcomings of TCP connection termination have been described many times. If you are not familiar with those problems here’s an example of an article that focuses on the problem.
However, there’s one special use case that is rarely, if ever, discussed.
Imagine a TCP client wanting to shut down its TCP connection to server cleanly. It wants to send the last request to the server, read any responses it may produce and exit.
Given that it has no idea how many responses are about to arrive it can’t just close the socket (it would miss the responses) but, at the same time, it cannot just go on reading responses forever (that would make it hang after the last response is received). What it needs is some way to let server know that it is shutting down. The server should then send back all the pending responses and subsequently acknowledge the shut down.
Read more at: Why is my TCP not reliable (expert edition)
- Nick Bowie – IT Origins - February 22, 2018
- Qualcomm’s Pyrrhic Acquisition | Gestalt IT Rundown: February 21, 2018 - February 21, 2018
- White Boxes and Cultural Lock-in - February 20, 2018
- Salon Tries Crypto Mining Monetization - February 20, 2018
- Where AR We? - February 19, 2018
- Flexible Scaleout, Tom Lyon, and Reveal(x) in Gestalt News 18.8 - February 19, 2018
- In Defense of Facebook’s “Protect” - February 15, 2018
- Tom Lyon – IT Origins - February 15, 2018
- Do You Want to Build a Cloud? Gestalt IT Rundown: February 14, 2018 - February 14, 2018
- AI and Machines That Think They Can Think - February 14, 2018