vty: allow 0 as conn-timeout to disable it
VTY command to disable conn-timeout again, after it has been enabled.
conn-timeout was introduced in [1].
[1] Change-Id I18886052e090466f73829133c24f011806cc1fe0.
Change-Id: I7dee7dafaaf4bb93fd692ea06b52b9e012beac6d
diff --git a/src/libosmo-mgcp/mgcp_vty.c b/src/libosmo-mgcp/mgcp_vty.c
index 06aa7c8..a479b95 100644
--- a/src/libosmo-mgcp/mgcp_vty.c
+++ b/src/libosmo-mgcp/mgcp_vty.c
@@ -1379,10 +1379,10 @@
DEFUN(cfg_mgcp_conn_timeout,
cfg_mgcp_conn_timeout_cmd,
- "conn-timeout <1-65534>",
- "Set a time after which inactive connections (CIs) are closed. This can be used to work around interoperability"
- " problems causing connections to stay open forever, and slowly exhausting all available ports. Do not enable"
- " when LCLS is used (connections in LCLS state appear to be inactive)!\n"
+ "conn-timeout <0-65534>",
+ "Set a time after which inactive connections (CIs) are closed. Set to 0 to disable timeout. This can be used to"
+ " work around interoperability problems causing connections to stay open forever, and slowly exhausting all"
+ " available ports. Do not enable when LCLS is used (connections in LCLS state appear to be inactive)!\n"
"Timeout value (sec.)\n")
{
g_cfg->conn_timeout = strtoul(argv[0], NULL, 10);