Bug 219875 - lib/libc/tests/sys/stat_test:stat_socket fails sporadically with ECONNREFUSED instead of EINPROGRESS
Summary: lib/libc/tests/sys/stat_test:stat_socket fails sporadically with ECONNREFUSED...
Status: Closed DUPLICATE of bug 240621
Alias: None
Product: Base System
Classification: Unclassified
Component: tests (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-testing (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-08 22:37 UTC by Enji Cooper
Modified: 2022-04-19 14:01 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***