From dd45426da1904e875c1e240f747bc0637672b5f6 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Sat, 2 Mar 2019 17:16:34 +0800 Subject: [PATCH] msg: rename ms_tcp_read_timeout to ms_connection_idle_timeout The old nameing 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. Master PR: https://github.com/ceph/ceph/pull/27337 This does not follow the normal backport process because the protocol of transport layer of Ceph has been greatly changed for Nautilus. Signed-off-by: xie xingguo --- src/common/legacy_config_opts.h | 2 +- src/common/options.cc | 2 +- src/msg/async/AsyncConnection.cc | 2 +- src/msg/simple/Pipe.cc | 2 +- src/test/librados/watch_notify.cc | 6 +++--- src/test/msgr/test_msgr.cc | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 7dac8782d2349..5cee83eac1dbc 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -137,7 +137,7 @@ OPTION(ms_bind_retry_delay, OPT_INT) // Delay between attemps to bind OPTION(ms_bind_before_connect, OPT_BOOL) OPTION(ms_tcp_listen_backlog, OPT_INT) OPTION(ms_rwthread_stack_bytes, OPT_U64) -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 fdbc23312aeee..a6b872cdf6f6c 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -707,7 +707,7 @@ std::vector