fix:mqtt server增加KeepAlive

master
xiwa 2024-02-22 19:02:15 +08:00
parent bd47b3f1c3
commit 24bfc5b85b
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ public class MqttVerticle extends AbstractVerticle implements Handler<MqttEndpoi
.setCertPath(config.getSslCert()));
}
options.setUseWebSocket(config.isUseWebSocket());
options.setTcpKeepAlive(true);
mqttServer = MqttServer.create(vertx, options);
mqttServer.endpointHandler(this).listen(ar -> {