Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mqtt exception Too many publishes in progress (32202)

Tags:

java

mqtt

paho

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.

like image 234
uttam palkar Avatar asked Apr 17 '15 06:04

uttam palkar


1 Answers

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

like image 152
Phoste Avatar answered Sep 18 '22 18:09

Phoste