Skip to content

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
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