Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect max_inlight message count in reconnect #698

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 30, 2022

  1. Respect 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
    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 eclipse#492
    
    Signed-off-by: Juha Ylikoski <juha.ylikoski@treon.fi>
    Juha-Ylikoski-Treon committed Dec 30, 2022
    Configuration menu
    Copy the full SHA
    86d401a View commit details
    Browse the repository at this point in the history