higher config web service timeout, formatting
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
* fix for high traffic on KNX integration
|
* fix for high traffic on KNX integration
|
||||||
* add workaround for libssl issues, add debug logging and force it using IPv4
|
* add workaround for libssl issues, add debug logging and force it using IPv4
|
||||||
* fix log level potentially set too late during startup
|
* fix log level potentially set too late during startup
|
||||||
|
* fix too low timeout for config web service
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
* add log entry for unstartable TCP ports
|
* add log entry for unstartable TCP ports
|
||||||
|
|||||||
+3
-4
@@ -912,10 +912,9 @@ int main(int argc, char* argv[], char* envp[]) {
|
|||||||
}
|
}
|
||||||
configHttpClient = new HttpClient();
|
configHttpClient = new HttpClient();
|
||||||
if (
|
if (
|
||||||
// check with low timeout of 1 second initially:
|
!configHttpClient->connect(configHost, configPort, proto == "https", PACKAGE_NAME "/" PACKAGE_VERSION)
|
||||||
!configHttpClient->connect(configHost, configPort, proto == "https", PACKAGE_NAME "/" PACKAGE_VERSION, 1)
|
// if that did not work, issue a single retry with higher timeout:
|
||||||
// if that did not work, issue a single retry with default timeout:
|
&& !configHttpClient->connect(configHost, configPort, proto == "https", PACKAGE_NAME "/" PACKAGE_VERSION, 8)
|
||||||
&& !configHttpClient->connect(configHost, configPort, proto == "https", PACKAGE_NAME "/" PACKAGE_VERSION)
|
|
||||||
) {
|
) {
|
||||||
logWrite(lf_main, ll_error, "invalid configPath URL (connect)"); // force logging on exit
|
logWrite(lf_main, ll_error, "invalid configPath URL (connect)"); // force logging on exit
|
||||||
delete configHttpClient;
|
delete configHttpClient;
|
||||||
|
|||||||
Reference in New Issue
Block a user