Skip to content

Conversation

f-w
Copy link

@f-w f-w commented Sep 13, 2025

@f-w f-w requested review from nodkz and hasezoey as code owners September 13, 2025 18:26
Copy link
Member

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

Looks good to me. Did you already have a chance to test this?

Comment on lines +466 to +467
/^connection \d+ to [\d.]+:\d+ closed$/i.test(err.message) ||
'read ECONNRESET' === err.message
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/^connection \d+ to [\d.]+:\d+ closed$/i.test(err.message) ||
'read ECONNRESET' === err.message
(/^connection \d+ to [\d.]+:\d+ closed$/i.test(err.message) ||
'read ECONNRESET' === err.message)

To make use of the typescript check that message exists; or is it not a MongoNetworkError?

Copy link

Choose a reason for hiding this comment

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

Tested. It's not MongoNetworkError.

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.

3 participants