summaryrefslogtreecommitdiff
path: root/server-tools/instance-manager/options.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server-tools/instance-manager/options.cc')
-rw-r--r--server-tools/instance-manager/options.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/server-tools/instance-manager/options.cc b/server-tools/instance-manager/options.cc
index 8119e8fc0ea..e7d366e7457 100644
--- a/server-tools/instance-manager/options.cc
+++ b/server-tools/instance-manager/options.cc
@@ -79,6 +79,7 @@ enum options {
#endif
OPT_MONITORING_INTERVAL,
OPT_PORT,
+ OPT_WAIT_TIMEOUT,
OPT_BIND_ADDRESS
};
@@ -151,6 +152,11 @@ static struct my_option my_long_options[] =
{ "version", 'V', "Output version information and exit.", 0, 0, 0,
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0 },
+ { "wait-timeout", OPT_WAIT_TIMEOUT, "The number of seconds IM waits "
+ "for activity on a connection before closing it.",
+ (gptr *) &net_read_timeout, (gptr *) &net_read_timeout, 0, GET_ULONG,
+ REQUIRED_ARG, NET_WAIT_TIMEOUT, 1, LONG_TIMEOUT, 0, 1, 0 },
+
{ 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0 }
};