You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by ww...@apache.org on 2022/02/25 09:44:49 UTC
[incubator-brpc] branch master updated: fix CheckHealth not set has_request_code bug
This is an automated email from the ASF dual-hosted git repository.
wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git
The following commit(s) were added to refs/heads/master by this push:
new 67f6081 fix CheckHealth not set has_request_code bug
new 89ed969 Merge pull request #1502 from serverglen/FixCheckHealth
67f6081 is described below
commit 67f60819f1544e8a22480853c1a250a520dd3874
Author: liushuai06 <li...@baidu.com>
AuthorDate: Thu Jul 29 21:39:49 2021 +0800
fix CheckHealth not set has_request_code bug
---
src/brpc/channel.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/brpc/channel.cpp b/src/brpc/channel.cpp
index 9c6642d..add1ad6 100755
--- a/src/brpc/channel.cpp
+++ b/src/brpc/channel.cpp
@@ -562,7 +562,7 @@ int Channel::CheckHealth() {
return -1;
} else {
SocketUniquePtr tmp_sock;
- LoadBalancer::SelectIn sel_in = { 0, false, false, 0, NULL };
+ LoadBalancer::SelectIn sel_in = { 0, false, true, 0, NULL };
LoadBalancer::SelectOut sel_out(&tmp_sock);
return _lb->SelectServer(sel_in, &sel_out);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org