summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/SaslAuthenticator.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2009-01-13 19:08:29 +0000
committerAndrew Stitcher <astitcher@apache.org>2009-01-13 19:08:29 +0000
commit5fec8f487c510e2309b3bc939fea70078a11af97 (patch)
treef875a150066a08094eba72856de99e471185a0aa /cpp/src/qpid/broker/SaslAuthenticator.cpp
parent77bde150020c6c34130523f528d739c264aa12e3 (diff)
downloadqpid-python-5fec8f487c510e2309b3bc939fea70078a11af97.tar.gz
Send heartbeat from broker to client
- Server sends possible heartbeat range and client replies with desired heartbeat as part of the tune-tuneOk exchange git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@734220 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SaslAuthenticator.cpp')
-rw-r--r--cpp/src/qpid/broker/SaslAuthenticator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/SaslAuthenticator.cpp b/cpp/src/qpid/broker/SaslAuthenticator.cpp
index 9fce1fbbd5..57c761a41d 100644
--- a/cpp/src/qpid/broker/SaslAuthenticator.cpp
+++ b/cpp/src/qpid/broker/SaslAuthenticator.cpp
@@ -160,7 +160,7 @@ void NullAuthenticator::start(const string& mechanism, const string& response)
} else {
connection.setUserId("anonymous");
}
- client.tune(framing::CHANNEL_MAX, connection.getFrameMax(), 0, 0);
+ client.tune(framing::CHANNEL_MAX, connection.getFrameMax(), 0, connection.getHeartbeatMax());
}
@@ -341,7 +341,7 @@ void CyrusAuthenticator::processAuthenticationStep(int code, const char *challen
connection.setUserId(const_cast<char*>(static_cast<const char*>(uid)));
- client.tune(framing::CHANNEL_MAX, connection.getFrameMax(), 0, 0);
+ client.tune(framing::CHANNEL_MAX, connection.getFrameMax(), 0, connection.getHeartbeatMax());
} else if (SASL_CONTINUE == code) {
string challenge_str(challenge, challenge_len);