Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

connect timeout tests: work around ECONNREFUSED #653

Merged
merged 2 commits into from
Nov 13, 2018

Conversation

weissi
Copy link
Member

@weissi weissi commented Nov 13, 2018

Motivation:

Some network configurations might disallow connecting to unknown IP
addresses. The effect of that is that we might see ECONNREFUSED when
trying to connect to 198.51.100.254 which nominally is reserved for
documentation only (ie. we shouldn't get any RSTs).

Modifications:

ignore ECONNREFUSED in the timeout tests too

Result:

tests stable in less permissive network environments

Motivation:

Some network configurations might disallow connecting to unknown IP
addresses. The effect of that is that we might see `ECONNREFUSED` when
trying to connect to 198.51.100.254 which nominally is reserved for
documentation only (ie. we shouldn't get any RSTs).

Modifications:

ignore `ECONNREFUSED` in the timeout tests too

Result:

tests stable in less permissive network environments
@weissi weissi requested a review from Lukasa November 13, 2018 14:43
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Nov 13, 2018
@Lukasa Lukasa added this to the 1.12.0 milestone Nov 13, 2018
@weissi weissi merged commit 7445783 into apple:master Nov 13, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants