You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// When keep_alive feature is disabled client can live forever, which is not good in// distributed broker context so currenlty we don't allow it.if connect.keep_alive == 0{returnErr(Error::ZeroKeepAlive);}
Such behaviour deviates from the 3.1.1 specification:
A Keep Alive value of zero (0) has the effect of turning off the keep alive mechanism. This means that, in this case, the Server is not required to disconnect the Client on the grounds of inactivity.
Note that a Server is permitted to disconnect a Client that it determines to be inactive or non-responsive at any time, regardless of the Keep Alive value provided by that Client.
The server may enforce it's own keep-alive when zero, yet it may not deny clients that wish to abstain from PING obligations.
The text was updated successfully, but these errors were encountered:
Such behaviour deviates from the 3.1.1 specification:
The server may enforce it's own keep-alive when zero, yet it may not deny clients that wish to abstain from PING obligations.
The text was updated successfully, but these errors were encountered: