-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
{ | ||
helper.ReceivingMessage(); | ||
using (var buffer = ReceiveBuffer(operationContext, responseTo)) | ||
while (true) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
339a283
to
cfe823f
Compare
cfe823f
to
f04b426
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.