Bug 219875

Summary: lib/libc/tests/sys/stat_test:stat_socket fails sporadically with ECONNREFUSED instead of EINPROGRESS
Product: Base System Reporter: Enji Cooper <ngie>
Component: testsAssignee: freebsd-testing (Nobody) <testing>
Status: Closed DUPLICATE    
Severity: Affects Some People CC: bdrewery, markj
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Enji Cooper freebsd_committer freebsd_triage 2017-06-08 22:37:56 UTC
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.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2018-01-08 04:14:49 UTC
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".
Comment 2 Mark Johnston freebsd_committer freebsd_triage 2022-04-19 14:01:35 UTC

*** This bug has been marked as a duplicate of bug 240621 ***