Skip to content

Connections must not be closed when timeoutMS expires before sending a request#1573

Merged
stIncMale merged 1 commit intomongodb:mainfrom
stIncMale:JAVA-5715
Dec 10, 2024
Merged

Connections must not be closed when timeoutMS expires before sending a request#1573
stIncMale merged 1 commit intomongodb:mainfrom
stIncMale:JAVA-5715

Conversation

@stIncMale
Copy link
Copy Markdown
Member

@stIncMale stIncMale requested a review from vbabanin December 4, 2024 01:26
@stIncMale stIncMale self-assigned this Dec 4, 2024
boolean[] shouldReturn = {false};
Timeout.onExistsAndExpired(operationContext.getTimeoutContext().timeoutIncludingRoundTrip(), () -> {
callback.onResult(null, createMongoOperationTimeoutExceptionAndClose(commandEventSender));
bsonOutput.close();
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is another bug we had - we were not closing bsonOutput in this situation.

Copy link
Copy Markdown
Member

@vbabanin vbabanin left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this! LGTM!

@stIncMale stIncMale merged commit 7f368dd into mongodb:main Dec 10, 2024
@stIncMale stIncMale deleted the JAVA-5715 branch December 10, 2024 17:40
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