This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- FlexNet Publisher
- :
- FlexNet Publisher Forum
- :
- Running lc_get_server_version in Mac takes more than 100 seconds when server is unreachable
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 14, 2023
04:53 AM
Running lc_get_server_version in Mac takes more than 100 seconds when server is unreachable
Hi,
When license server given in license path is unreachable, it takes more than 100 sec for lc_get_server_version to respond.
Below is how we are calling the APIs
const char *license_path = "<IP/hostname>"
lc_new_job((LM_HANDLE *)0, lc_new_job_arg2, &vendorCode, &job);
lc_set_attr(job, LM_A_APP_DISABLE_CACHE_READ, (LM_A_VAL_TYPE) 1);
lc_set_attr(job, LM_A_LICENSE_DEFAULT, (LM_A_VAL_TYPE) license_path);
lc_get_server_version(job, FNP_SERVER_TYPE_LIC_MANAGER, &lm_flexnet_ver);
Is there a way to have timeout on this API? Will setting the attribute for LM_A_CONN_TIMEOUT reduce this?
BR,
Ed
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 14, 2023
09:56 PM
I tried LM_A_CONN_TIMEOUT but setting 1 sec becomes 10s and similarly with 3 sec, it becomes 30 sec. Is there a retry of 10?
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)