News for hackers. Stuff that matters.
Re:What developers should know about TCP by Matthias247 on Friday May 15, 2020 @04:32PM (#23197057)
I created such an environment for my unit-tests: Wrapping TCP sockets in a stream which only accepts 1 byte at a time in both directions and returns EAGAIN on every second read provides an easy way to make sure the code on top of the socket does perform all the correct retries.

That will most likely not help newcomers which directly write their code agains the OS socket. But once you get a better understanding of the topic and start adding tests to your codebase it's rather easy to add.

Re:What developers should know about TCP by nitwit005 on Friday May 15, 2020 @07:00PM (#23198512)
I've done something similar of forcing the sends to be a single byte at a time. That's usually enough to find the obvious issues in parsing data.