eclipse / paho.mqtt.java

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

MqttException: Too many publishes in progress #993

Open inspired95 opened 1 year ago

inspired95 commented 1 year ago

Hello everyone!

Give you please share with me a solution for an exception org.eclipse.paho.mqttv5.common.MqttException: Too many publishes in progress

that is available in lib MQTT v5 org.eclipse.paho.mqttv5.client_1.2.5.jar

In MQTT v3 a method called setMaxInflight(which helps) was available in MqttConnectionOptions. In MQTT v5 it is not there anymore.

Thanks for help!

IanBoden commented 1 year ago

Not something I've looked at, but does the setReceiveMaximum do what you want?

Although looking at the comments it should default to 65535 which is also the maximum so unless you are setting it to a lower value it probably wont help. I believe the maxInFlight was also limitted to 65535 so maybe I'm conflating two different settings.