paho.mqtt.java icon indicating copy to clipboard operation
paho.mqtt.java copied to clipboard

MqttException: Too many publishes in progress

Open inspired95 opened this issue 2 years ago • 2 comments

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!

inspired95 avatar Apr 17 '23 06:04 inspired95

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.

IanBoden avatar Aug 16 '23 13:08 IanBoden