-
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
KeepAlive interval of 1s results in panic #531
Comments
While
In your case 1/2 = 0 (integer math) so the call is effectively I suspect that this issue is due to the authors expecting longer keep-alive durations; is there a reason you need to send them this frequently? The spec spec suggests:
I'm happy to accept a pull request that resolves this (but don't see this as a priority as sending keep-alives this frequently seems to be of limited use). |
set keepalive 1 Second 🤪 |
Signed-off-by: Daichi Tomaru <banaoa7543@gmail.com>
Signed-off-by: Daichi Tomaru <banaoa7543@gmail.com>
Closing as per PR 531 |
Hi everyone,
I've noticed, that when an keepAlive interval of 1s <= t < 2s is used, it panics.
I'm using:
opts.SetKeepAlive(1*time.Second)
It produces the following:
Is that intended behavior?
my env:
go version:1.17
github.com/eclipse/paho.mqtt.golang v1.3.5
The text was updated successfully, but these errors were encountered: