-
Notifications
You must be signed in to change notification settings - Fork 534
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
Panic on connection lost / reconnecting #536
Comments
Hi @TomasVojacek, I was aware that there was an issue here (there are a few other similar issues) - reusing the Would the built in functionality (see Happy to accept a pull request fixing this. However I don't think it will be a simple fix; due to the way this library has evolved its difficult to maintain thread safety (really easy to introduce unintended deadlocks) and the way Matt |
I'm going to close this as a duplicate of #550 (realise that this issue was raised earlier but that issue more clearly states the issue). Hopefully the additional comments in the readme and |
I experience similar problem as #488
paho v1.3.5
ClientOptions{
ClientID:"devel-02",
CleanSession:false
Order:false
KeepAlive:2
AutoReconnect:true
MaxReconnectInterval:2s
}
running approx 40 client in parallel
simplified section of code causing panic:
error message:
panic: close of closed channel
goroutine 8466 [running]:
github.com/eclipse/paho%2emqtt%2egolang.(*client).startCommsWorkers.func2(0xc00a3604b8, 0xc00a3604c0, 0xc00a30be00, 0xc0018a8b40)
/go/pkg/mod/github.com/eclipse/[email protected]/client.go:637 +0x53c
created by github.com/eclipse/paho%2emqtt%2egolang.(*client).startCommsWorkers
/go/pkg/mod/github.com/eclipse/[email protected]/client.go:597 +0x4b3
The text was updated successfully, but these errors were encountered: