-
-
Notifications
You must be signed in to change notification settings - Fork 35
Getting race during reconnect #22
Copy link
Copy link
Open
Description
Hi, I'm getting the below race condition when emitter disappears and reappears (reconnect). I'm getting it consistently when killing (SIGTERM) emitter.
It looks like the issue is in github.com/eclipse/paho.mqtt.golang however it was potentially fixed in v1.2.0
WARNING: DATA RACE
Read at 0x00c00010cb18 by goroutine 62:
github.com/eclipse/paho%2emqtt%2egolang.keepalive()
/home/dev/go/pkg/mod/github.com/eclipse/paho.mqtt.golang@v1.1.1/ping.go:42 +0x22e
Previous write at 0x00c00010cb18 by goroutine 28:
github.com/eclipse/paho%2emqtt%2egolang.(*client).reconnect()
/home/dev/go/pkg/mod/github.com/eclipse/paho.mqtt.golang@v1.1.1/client.go:377 +0x11f8
Goroutine 62 (running) created at:
github.com/eclipse/paho%2emqtt%2egolang.(*client).reconnect()
/home/dev/go/pkg/mod/github.com/eclipse/paho.mqtt.golang@v1.1.1/client.go:374 +0x15fc
Goroutine 28 (running) created at:
github.com/eclipse/paho%2emqtt%2egolang.(*client).internalConnLost()
/home/dev/go/pkg/mod/github.com/eclipse/paho.mqtt.golang@v1.1.1/client.go:465 +0x10c
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels