You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I got a panic when calling ReadWithContext().
I cannot reproduce the error, I was calling the function a huge number of times before and without any change in the setup I randomly got this panic once.
Do you have an idea what could be the reason for it and how to prevent it?
Looking at the code I am finding some race conditions like this one. The initial nil check does not trigger but when we make the actual send request it fails since the connection is re-established.
In these cases the method calls c.SecureChannel and/or c.Session multiple
times and during a re-connect the returned value can change. This patch
addresses this by storing the returned value in a local variable.
Fixes#640
Hello,
I got a panic when calling
ReadWithContext()
.I cannot reproduce the error, I was calling the function a huge number of times before and without any change in the setup I randomly got this panic once.
Do you have an idea what could be the reason for it and how to prevent it?
The text was updated successfully, but these errors were encountered: