Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Increase MongoDB timeout to 5 seconds #3620

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

rgmz
Copy link
Contributor

@rgmz rgmz commented Nov 18, 2024

Description:

This increases the timeout from 2s -> 5s.

The current timeout makes the detector effectively unusable if your connection has any latency. Even 5s is far too low, imo. (See #2991).

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@rgmz rgmz requested a review from a team as a code owner November 18, 2024 19:55
@ahrav ahrav merged commit 1e16a29 into trufflesecurity:main Nov 19, 2024
13 checks passed
@rgmz rgmz deleted the feat/mongodb-timeout branch November 19, 2024 01:21
@rgmz rgmz mentioned this pull request Dec 11, 2024
2 tasks
rosecodym pushed a commit that referenced this pull request Dec 16, 2024
This partially fixes #2991. The default timeout of 10s is wholly inadequate and leads to a high rate of false negatives.

I say "partially" because the MongoDB detector has a separate hard-coded timeout. It was bumped slightly in #3620 but ought to be higher.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants