-
Notifications
You must be signed in to change notification settings - Fork 139
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
Random crash in natsConn_processMsg #637
Comments
I suspect that this is not the lock of the connection that is failing, but the lock of the subscription. I see that there could be a race where the subscription is destroyed by the application while processing an inbound message for this subscription, which could lead to that crash. |
A race could cause the read loop to crash when processing a message for a subscription that is being removed in another thread. Resolves #637 Signed-off-by: Ivan Kozlovic <[email protected]>
We are using version 3.5.0 and we are using |
We are getting this sporadic errors, they seem to be correlated with a subscription timing out but looking at the code I can't figure out why would it crash when trying to lock the connection mutex. Any ideas what could cause this? it looks like a race condition between the readloop and the lifetime of the connection.
The text was updated successfully, but these errors were encountered: