Oldb connection timeout: added python example authored by Marcus Schilling's avatar Marcus Schilling
...@@ -1474,11 +1474,21 @@ $ export CONFIG_CLIENT_INI = /tmp/cii_client.ini ...@@ -1474,11 +1474,21 @@ $ export CONFIG_CLIENT_INI = /tmp/cii_client.ini
b) programmatically (available since CII 2.0/DevEnv 3.9) b) programmatically (available since CII 2.0/DevEnv 3.9)
C++
```plaintext ```plaintext
CiiClientConfiguration config_client_ini = { .connection_timeout = 5, }; CiiClientConfiguration config_client_ini = { .connection_timeout = 5, };
elt::config::CiiConfigClient::SetDevClientConfig (config_client_ini); elt::config::CiiConfigClient::SetDevClientConfig (config_client_ini);
``` ```
Python
```plaintext
import elt.config
config_client_ini = elt.config.CiiClientConfiguration()
config_client_ini.connection_timeout=5
elt.config.CiiConfigClient.set_dev_client_config(config_client_ini)
```
**Background** **Background**
The actual stalling comes from a failed MAL-communication with the CII Internal Configuration System, which likely is not running. Setting the timeout for the CiiConfigClient is therefore the thing to do. Note that the properties file (aka. "deployment config") takes precedence and will, if they overlap, overrule the programmatic (aka. "developer config") settings. The actual stalling comes from a failed MAL-communication with the CII Internal Configuration System, which likely is not running. Setting the timeout for the CiiConfigClient is therefore the thing to do. Note that the properties file (aka. "deployment config") takes precedence and will, if they overlap, overrule the programmatic (aka. "developer config") settings.
... ...
......