Skip to content

Conversation

addaleax
Copy link
Collaborator

MONGOSH-828

Only fail connection attempts early if they fail for all hosts,
not just a single host.

…ONGOSH-828

Only fail connection attempts early if they fail for all hosts,
not just a single host.
it('fails fast for ECONNREFUSED errors to a single host', async() => {
const shell = TestShell.start({ args: [
'--port', '0'
'--port', '65535'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using 0 actually made this fail with a MongoParseError, without trying to connect at all

@addaleax addaleax merged commit 6474809 into main Jun 15, 2021
@addaleax addaleax deleted the 828-dev branch June 15, 2021 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants