Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/MongoDB.Driver/Core/Connections/BinaryConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ public async Task<ResponseMessage> ReceiveMessageAsync(OperationContext operatio

private void SendBuffer(OperationContext operationContext, IByteBuffer buffer)
{
ThrowIfCancelledOrDisposed(operationContext);
_sendLock.Wait(operationContext.RemainingTimeout, operationContext.CancellationToken);
try
{
Expand Down Expand Up @@ -571,6 +572,7 @@ private void SendBuffer(OperationContext operationContext, IByteBuffer buffer)

private async Task SendBufferAsync(OperationContext operationContext, IByteBuffer buffer)
{
ThrowIfCancelledOrDisposed(operationContext);
await _sendLock.WaitAsync(operationContext.RemainingTimeout, operationContext.CancellationToken).ConfigureAwait(false);
try
{
Expand Down
Loading