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

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

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

stIncMale
Copy link
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
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
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
60 checks passed
@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