Commit 46ada252 authored by zhujiashun's avatar zhujiashun Committed by gejun

fix health check problem in agent_socket

parent eb74eee6
......@@ -24,6 +24,7 @@ namespace brpc {
DECLARE_bool(http_verbose);
DECLARE_int32(http_verbose_max_body_length);
DECLARE_int32(health_check_interval);
namespace policy {
......@@ -1682,7 +1683,7 @@ void H2GlobalStreamCreator::ReplaceSocketForStream(
SocketOptions opt = (*inout)->_options;
// Only main socket can be the owner of ssl_ctx
opt.owns_ssl_ctx = false;
opt.health_check_interval_s = -1;
opt.health_check_interval_s = FLAGS_health_check_interval;
// TODO(zhujiashun): Predictively create socket to improve performance
if (get_client_side_messenger()->Create(opt, &sid) != 0) {
cntl->SetFailed(EINVAL, "Fail to create H2 socket");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment