HomeFreeBSD

tests/netinet: fix so_reuseport_lb_test flakyness

Description

tests/netinet: fix so_reuseport_lb_test flakyness

Stop the threads before exiting test body. Otherwise there is a chance
threads would use the softc that is stored on the main thread stack after
it is destroyed and the test would fail. Stop the threads in the reverse
order, so that listener is stopped after all connectors are stopped.

Tested by: olivier

Details

Provenance
glebiusAuthored on Tue, Oct 7, 9:02 PM
Parents
rGd801cc2d8542: sockstat: support reporting of BBLog state
Branches
Unknown
Tags
Unknown