fix:mqtt server增加KeepAlive
parent
bd47b3f1c3
commit
24bfc5b85b
|
@ -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 -> {
|
||||
|
|
Loading…
Reference in New Issue