rocketmq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ifplu...@apache.org
Subject [rocketmq-client-cpp] 01/02: findConsumerIds from same broker more time
Date Tue, 26 May 2020 23:17:18 GMT
This is an automated email from the ASF dual-hosted git repository.

ifplusor pushed a commit to branch re_dev
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-cpp.git

commit 8c6f24d5cfcd9cf1c739ce14013b2eb4f4c3e254
Author: James Yin <ywhjames@hotmail.com>
AuthorDate: Sat May 9 17:17:22 2020 +0800

    findConsumerIds from same broker more time
---
 src/MQClientInstance.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/MQClientInstance.cpp b/src/MQClientInstance.cpp
index 1ac6516..213d74b 100644
--- a/src/MQClientInstance.cpp
+++ b/src/MQClientInstance.cpp
@@ -873,7 +873,7 @@ void MQClientInstance::findConsumerIds(const std::string& topic,
     std::lock_guard<std::mutex> lock(m_topicBrokerAddrTableMutex);
     const auto& it = m_topicBrokerAddrTable.find(topic);
     if (it != m_topicBrokerAddrTable.end()) {
-      if (UtilAll::currentTimeMillis() < it->second.second + 40000) {
+      if (UtilAll::currentTimeMillis() < it->second.second + 120000) {
         brokerAddr = it->second.first;
       }
     }


Mime
View raw message