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: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: tests (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-testing mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-08 22:37 UTC by Enji Cooper
Modified: 2018-01-08 04:14 UTC (History)
1 user (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 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".