contrib/netbsd-tests/lib/libc/sys/t_stat.c:stat_socket tries to simulate the EINPROGRESS error with connect(2), in a racy way (sometimes the connect fails with ECONNREFUSED). I suspect it needs to try a few times and bail if it doesn't receive EINPROGRESS, in the event that the socket setup takes a few seconds to complete, instead of just trying once and bailing.
For the following conditions Product: Base System, Documentation Status: New, Open, In Progress, UNCONFIRMED Assignee: Former FreeBSD committer Reset to default assignee. Reset status to "Open".
*** This bug has been marked as a duplicate of bug 240621 ***