HomeFreeBSD

tests/netinet: add a demo of TCP implied connect

Description

tests/netinet: add a demo of TCP implied connect

The TCP implied connect is an artifact left after T/TCP. To my surprise
it still works, hence the existence of this test. Please read this email
first:

https://lists.freebsd.org/pipermail/freebsd-net/2010-August/026311.html

An interesting fact that this test takes 220 - 240 milliseconds to
execute on my Threadripper PRO. Flipping the '#if 0' to '#if 1' in the
test, thus bringing it back to normal connect(2), would speed the test up
a hundred times and I guess all this time is fork+exec of the test.

Details

Provenance
glebiusAuthored on Feb 1 2024, 9:37 PM
Parents
rG702c48184718: socket tests: improve error message
Branches
Unknown
Tags
Unknown