2 ms·
You could easily run into the same scenario over a real network as well. Perhaps in that case, Linux would send a RST to the SYN; it's hard to know without test
by toast0 10y ago
You could easily run into the same scenario over a real network as well. Perhaps in that case, Linux would send a RST to the SYN; it's hard to know without testing since localhost on linux skips most of the TCP stack, FreeBSD runs the full stack though -- you can get congestion collapse on lo0 if you push it hard enough or find exciting (fixed) bugs in syncookies leading to desynchronized TCP states.
127.0.0.0/8 is a pretty huge selection of ips to talk to yourself with -- if that's not enough ports for you, you can use UNIX sockets or take over DoD address space. (or ipv6)