fusesource / mqtt-client

A Java MQTT Client
http://mqtt-client.fusesource.org/
Apache License 2.0
1.27k stars 368 forks source link

Using SSL causes OOM on Android 5.0 devices #92

Open jarvislin opened 7 years ago

jarvislin commented 7 years ago
connection.connect(new Callback<Void>() {
            @Override
            public void onSuccess(Void value) {

            }

            @Override
            public void onFailure(Throwable value) {

            }
});

The method of 'connect' does not trigger onSuccess or onFailure on 5.0 device of SSL connection, and then it causes OOM.

The source code is tested on 4.x / 5.1 / 6.0 / 7.0 devices and the client connects successfully (with SSL). The connection without SSL works on 5.0 device.