Skip to content

Conversation

f-w
Copy link

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

@f-w f-w requested review from hasezoey and nodkz 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.

Copy link

Marking the PR as stale, it will be closed in 7 days if no more activity is seen

@github-actions github-actions bot added the stale This Issue is outdated and will likely be closed if no further comments are given label Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale This Issue is outdated and will likely be closed if no further comments are given

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants