mqtt exception Too many publishes in progress (32202)

uttam palkar picture uttam palkar · Apr 17, 2015 · Viewed 7.5k times · Source

I am using paho mqttv3 java client for publishing messages concurrently around 2000 connections by creating threads.

After some time it starts giving MqttException is folows :

reason----- 32202
msg--------Too many publishes in progress
cause------ null

Although I have set Qos 1.

Anyone knows why I am getting such exception?

Thanks in advance.

Answer

Phoste picture Phoste · Dec 22, 2016

I just came across another question which answer helped me out with this problem.

You have to set an higher MaxInflight value by using setMaxInflight() method from the MqttConnectOptions object before connecting to the broker.

The default value is set to 10.

The original topic is : Send many publish message: Too many publishes in progress Error