Details
Description
System.ArgumentException : This buffer cannot be returned to the buffer manager because it is the wrong size.
Parameter name: buffer
at System.Runtime.InternalBufferManager.PooledBufferManager.ReturnBuffer(Byte[] buffer)
at Couchbase.IO.SslConnection.<SendAsync>d__6.MoveNext() in C:\Users\jmorris\repos\couchbase-net-client\Src\Couchbase\IO\SslConnection.cs:line 101
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
at NUnit.Framework.AsyncSynchronizationContext.AsyncOperationQueue.InvokePendingOperations()
at NUnit.Framework.AsyncSynchronizationContext.AsyncOperationQueue.InvokeAll()
at NUnit.Framework.AsyncInvocationRegion.AsyncVoidInvocationRegion.WaitForPendingOperationsToComplete(Object invocationResult)
at NUnit.Framework.AsyncInvocationRegion.AsyncVoidInvocationRegion.WaitForPendingOperationsToComplete(Object invocationResult)
at NUnit.Core.NUnitAsyncTestMethod.RunTestMethod()
I think that may be the bug...in general an auth exception should only occur when the socket connection is initiated. OTH, I am not sure how the client would react if the password was changed on the server after the client had authenticated. This is something we may want to investigate/document, but not likely directly related to this ticket (perhaps discuss this scenario in sdk meeting?).