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

Fix regression in timeout handling. #1373

Merged
merged 4 commits into from Apr 29, 2024
Merged

Conversation

vbabanin
Copy link
Member

  • Resolve regression where CSOT exception is exposed despite CSOT being disabled.
  • Correct premature decrease in connect timeout before connection initiation.
  • Encapsulating logic within TimeoutContext.

JAVA-5439

- Resolve regression where CSOT exception is exposed despite CSOT being disabled.
- Correct premature decrease in connect timeout before connection initiation.
- Refactor timeout management by encapsulating logic within TimeoutContext to enhance code cleanliness and encapsulation.

JAVA-5439
@vbabanin vbabanin requested a review from rozza April 27, 2024 01:41
@vbabanin vbabanin self-assigned this Apr 28, 2024
Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

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

One typo nit but LGTM

if (ms == 0) {
onInfinite.run();
} else {
private static void runWithFixedTimout(final long ms, final LongConsumer onRemaining) {
Copy link
Member

Choose a reason for hiding this comment

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

Nit: There was a typo in the original name:

runWithFixedTimout => runWithFixedTimeout

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, thanks!

@vbabanin vbabanin merged commit b02a5f9 into mongodb:CSOT Apr 29, 2024
55 of 57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants