-
Notifications
You must be signed in to change notification settings - Fork 199
Description
Hi,
this option is useful when the user can explicitly call the Vert.x MQTT MqttClient.ping() method
(see: https://github.com/vert-x3/vertx-mqtt/blob/cc90db35b19a9b378100dcaf09acb4afd5001426/src/main/java/io/vertx/mqtt/MqttClient.java#L260
),
allowing the application to disable the automatic keep-alive and implement a custom keep-alive mechanism.
However, when using smallrye-reactive-messaging, the underlying MqttClient is not directly accessible, so it is not possible to call ping() manually. As a result, the keep-alive mechanism cannot actually be disabled or customized, even though the configuration option exists.
For this reason, I believe the auto keep-alive configuration parameter is ineffective in this context and should either be removed or clearly documented as unsupported (if I set the option to false, the connection is closed every keepalivesec*1.5).