eclipse / paho.mqtt.java

Eclipse Paho Java MQTT client library. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
2.11k stars 882 forks source link

MqttClient.subscribe recursion called,cause stackoverflow error #816

Open zhangven opened 4 years ago

zhangven commented 4 years ago

Please fill out the form below before submitting, thank you!

org.eclipse.paho.mqttv5.client.MqttClient:523

    public IMqttToken subscribe(String[] topicFilters, int[] qos, IMqttMessageListener[] messageListeners)
            throws MqttException {
        return this.subscribe(topicFilters, qos, messageListeners);
    }
isaric commented 10 months ago

I confirm that this is still happening. Also using 1.2.5. I tried subscribe with teh single message listener lambda and got the same error. If this is a configuration issue, please link to the documentation.

zjor commented 8 months ago

The bug persists in 2023! Anyone will fix it?