TCP does its best to get data to the other application, but in the event of a disconnect we effectively lose all of it. Developers need to decide how their application reacts to unexpected disconnects. This might not be as idiomatic on Linux, but it gives me a bit more control as an application developer.

7m read timeFrom macoy.me
Post cover image
Table of contents
TCP reliability vs. application reliabilityrecv() and SIGPIPEDon't use Linux "everything is a file" APIs with socketsThe application's main select() loopSockets are still cool

Sort: