properly tune heartbeat delay
tuneOk was only properly tuning the heartbeat delay value for values larger than the default delay sent by the server. This changes that behavior to send back the requested heartbeat delay if one was provided
This commit is contained in:
parent
07ad9d8e4f
commit
4379e991c6
|
|
@ -402,7 +402,7 @@ void QAmqpClientPrivate::tune(const QAmqpMethodFrame &frame)
|
|||
if (!frameMax)
|
||||
frameMax = frame_max;
|
||||
channelMax = !channelMax ? channel_max : qMax(channel_max, channelMax);
|
||||
heartbeatDelay = !heartbeatDelay ? heartbeat_delay: qMax(heartbeat_delay, heartbeatDelay);
|
||||
heartbeatDelay = !heartbeatDelay ? heartbeat_delay: heartbeatDelay;
|
||||
|
||||
qAmqpDebug(">> channel_max: %d", channelMax);
|
||||
qAmqpDebug(">> frame_max: %d", frameMax);
|
||||
|
|
|
|||
Loading…
Reference in New Issue