Skip to content

CSHARP-3984: Remove BinaryConnection.DropBox #1754

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sanych-sun
Copy link
Member

No description provided.

@sanych-sun sanych-sun requested a review from a team as a code owner August 13, 2025 00:08
@sanych-sun sanych-sun requested review from papafe, rstam and BorisDog and removed request for a team and papafe August 13, 2025 00:08
@@ -482,11 +385,19 @@ public ResponseMessage ReceiveMessage(
try
{
helper.ReceivingMessage();
using (var buffer = ReceiveBuffer(operationContext, responseTo))
while (true)
Copy link
Member Author

Choose a reason for hiding this comment

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

We need this because driver could stop waiting on response from the server at any moment, and if it happened we should ignore server's response that is not the current request. We used to have exactly the same behavior with DropBox, with only difference that DropBox would store such response forever.

Copy link
Member Author

@sanych-sun sanych-sun Aug 13, 2025

Choose a reason for hiding this comment

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

And just to have full picture: we will change this in https://jira.mongodb.org/browse/DRIVERS-2884

Accordingly to the DRIVERS-2884 Driver should perform reading of pending response BEFORE sending request.

@sanych-sun sanych-sun marked this pull request as draft August 13, 2025 18:14
Copy link
Contributor

@rstam rstam left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants