TCP Puzzles 1-2

from blog Marek's idea of the day, | ↗ original
30 September 201930 September 2019 Recently I've been spending more time looking into Linux TCP implementation, trying to better understand some corner cases.Recently I've been spending more time looking into Linux TCP implementation, trying to better understand some corner cases. Here are two TCP puzzles. Using obvious, almost trivial, Python snippets, we can show really important design choices made deep in the networking stack. All we need is a bit of time... and courage to go into the Linux internals!Here are two TCP puzzles. Using obvious, almost trivial, Python snippets, we can show really important design choices made deep in the networking stack. All we need is a bit of time... and courage to go into the Linux internals! 1. Write buffer vs POLLOUT1. Write buffer vs POLLOUT Imagine a TCP server and a...Imagine a TCP server and a...