Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respoect max_inlight message count in reconnect
Previously if the message queue filled up for some reason like bad connection and the client disconnected (due to e.g. bad connection), it would send all of it's messages in _out_messages-queue and not respect _max_inflight_messages parameter. With some brokers and when we had 1000s of messages in queue and all being sent with qos 1 without any regard to the _max_inflight_messages, the broker would disconnect us or the connection would again break down. This patch makes sure _max_inflight_messages is respected when reconnect happens for any reason. I believe this also fixes #492 Signed-off-by: Juha Ylikoski <[email protected]>
- Loading branch information