Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unused client options manipulation #203

@ctron

Description

@ctron

In the constructor of the MQTT client, it looks like some changes in the past have changed the originally intended behavior:

public MqttClientImpl(Vertx vertx, MqttClientOptions options) {
// copy given options
NetClientOptions netClientOptions = new NetClientOptions(options);
netClientOptions.setIdleTimeout(DEFAULT_IDLE_TIMEOUT);
this.vertx = (VertxInternal) vertx;
this.options = new MqttClientOptions(options);
this.keepAliveTimeout = ((options.getKeepAliveInterval() * 1000) * 3) / 2;
}

From what I see, the netClientOptions gets copied, manipulated, but then not used at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions