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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With