cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
eaduro
Level 3

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

0 Kudos
(1) Reply
eaduro
Level 3

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?

0 Kudos