From 1d464221d998376561c102c83d3127e646815bbb Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Sat, 2 Mar 2019 14:12:12 +0800 Subject: [PATCH] msg: rename ms_tcp_read_timeout to ms_connection_idle_timeout The old naming is confusing, e.g., it actually indicates we should tear down the underlying connection which has no read/write activities at both sides (namely connection is idle) for over 15 minutes. Signed-off-by: xie xingguo --- src/common/legacy_config_opts.h | 2 +- src/common/options.cc | 4 ++-- src/msg/async/AsyncConnection.cc | 2 +- src/test/librados/watch_notify.cc | 6 +++--- src/test/msgr/test_msgr.cc | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index c10a906e659..7fe64976cee 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -120,7 +120,7 @@ OPTION(ms_bind_retry_count, OPT_INT) // If binding fails, how many times do we r OPTION(ms_bind_retry_delay, OPT_INT) // Delay between attempts to bind OPTION(ms_bind_before_connect, OPT_BOOL) OPTION(ms_tcp_listen_backlog, OPT_INT) -OPTION(ms_tcp_read_timeout, OPT_U64) +OPTION(ms_connection_idle_timeout, OPT_U64) OPTION(ms_pq_max_tokens_per_priority, OPT_U64) OPTION(ms_pq_min_cost, OPT_U64) OPTION(ms_inject_socket_failures, OPT_U64) diff --git a/src/common/options.cc b/src/common/options.cc index 8a35540db45..1e6aa4b5fca 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -955,9 +955,9 @@ std::vector