Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZCS-16412: Added command to manage the proxy timeout #175

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

swathy-shaji
Copy link
Contributor

@swathy-shaji swathy-shaji commented Jan 8, 2025

Ticket - ZCS-16412

To make the proxy time-out configurable
We are providing the privilege to the user to manage this value through zmlicensectl --service command

To get the proxy timeout - zmlicensectl --service getProxyTimeout
To set the proxy timeout - zmlicensectl --service setProxyTimeout=70000
To get the proxy socketTimeout - zmlicensectl --service getProxySocketTimeout
To set the proxy socketTimeout - zmlicensectl --service setProxySocketTimeout=70000
To get the proxy readTimeout - zmlicensectl --service getProxyReadTimeout
To set the proxy readTimeout - zmlicensectl --service setProxyReadTimeout=70000

Output

help

zimbra@telus-dev-1:~$ zmlicensectl --service help
Usage: /opt/zimbra/bin/zmlicensectl [option...]

   --service start|restart|stop|status
   --service setLogLevel=INFO|DEBUG|ERROR|WARN
   --service setOfflineMode=true|false
   --service setProxyTimeout=70000 (any numeric value greater than 60000 is acceptable, and value is considered in milliseconds)
   --service setProxySocketTimeout=70000 (any numeric value greater than 60000 is acceptable, and value is considered in milliseconds)
   --service setProxyReadTimeout=70000 (any numeric value greater than 60000 is acceptable, and value is considered in milliseconds)
   --service getLogLevel
   --service getOfflineMode
   --service getProxyTimeout
   --service getProxySocketTimeout
   --service getProxyReadTimeout
   --nalpeiron start|restart|stop|status
   --exportOfflineLicenseData | -exportOfflineLicenseData --exportStartTime YYYY/MM/DD --exportEndTime YYYY/MM/DD (offline only feature)
   --clearLicenseWorkDir
   --checkNalpeironConnectionStatus
zimbra@telus-dev-1:~$

set commands

zimbra@telus-dev-1:~$ zmlicensectl --service setProxyTimeout=
Error: Proxy timeout value is missing.
zimbra@telus-dev-1:~$ zmlicensectl --service setProxyTimeout=10
Error: Proxy timeout must be greater than 60000.
zimbra@telus-dev-1:~$ zmlicensectl --service setProxyTimeout=70000
zimbra@telus-dev-1:~$ zmlicensectl --service setProxySocketTimeout=10000
Error: Proxy socket timeout must be greater than 60000.
zimbra@telus-dev-1:~$ zmlicensectl --service setProxySocketTimeout=
Error: Proxy socket timeout value is missing.
zimbra@telus-dev-1:~$ zmlicensectl --service setProxySocketTimeout=80000
zimbra@telus-dev-1:~$ zmlicensectl --service setProxyReadTimeout=
Error: Proxy read timeout value is missing.
zimbra@telus-dev-1:~$ zmlicensectl --service setProxyReadTimeout=n
Error: Proxy read timeout must be a numeric value.
zimbra@telus-dev-1:~$ zmlicensectl --service setProxyReadTimeout=10
Error: Proxy read timeout must be greater than 60000.
zimbra@telus-dev-1:~$ zmlicensectl --service setProxyReadTimeout=90000
zimbra@telus-dev-1:~$ zmlicensectl --service setProxySocketTimeout=n
Error: Proxy socket timeout must be a numeric value.
zimbra@telus-dev-1:~$ zmlicensectl --service setProxyTimeout=n
Error: Proxy timeout must be a numeric value.
zimbra@telus-dev-1:~$

get commands

zimbra@telus-dev-1:~$ zmlicensectl --service getProxyTimeout
Current proxy timeout: 70000 milliseconds
zimbra@telus-dev-1:~$ zmlicensectl --service getProxySocketTimeout
Current proxy socket timeout: 80000 milliseconds
zimbra@telus-dev-1:~$ zmlicensectl --service getProxyReadTimeout
Current proxy read timeout: 90000 milliseconds
zimbra@telus-dev-1:~$

@CLAassistant
Copy link

CLAassistant commented Jan 8, 2025

CLA assistant check
All committers have signed the CLA.

@@ -64,10 +64,15 @@ startLicenseDaemonService()
if [ "x$zimbra_license_daemon_offline_mode" = "x" ]; then
zimbra_license_daemon_offline_mode=false
fi
if [ "x$zimbra_license_proxy_timeout" = "x" ]; then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@swathy-shaji swathy-shaji force-pushed the bugfix/ZCS-16412 branch 2 times, most recently from ad1ffe2 to d3720e7 Compare January 13, 2025 04:55
@swathy-shaji swathy-shaji merged commit d1278d7 into develop Jan 16, 2025
@swathy-shaji swathy-shaji deleted the bugfix/ZCS-16412 branch January 16, 2025 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants