]> git.basschouten.com Git - openhab-addons.git/commit
[openhabcloud] Reconnection Fixes (#14251)
authorDan Cunningham <dan@digitaldan.com>
Sun, 29 Jan 2023 09:21:54 +0000 (01:21 -0800)
committerGitHub <noreply@github.com>
Sun, 29 Jan 2023 09:21:54 +0000 (10:21 +0100)
commit9ba3c07d3e5aaba16dad4f66211c81dfb4d4509f
treeb329f32468e304183fa6eb9c2bbf6fda995bf923
parent16f3a3e85441e4d895106ee58f6a44dce3f011a8
[openhabcloud] Reconnection Fixes (#14251)

* [openhabcloud] Possible connection leak
* Creates thread safe reconnection, reduces unnecessary polling on setup, removes unused variables.
* adds the reconnect settings to the internal socket.io options.
* Up the min reconnect time
* Use @ssalonen sugestion for backoff mins and randomness
* Reconnect after server initiated disconnect
* Remove unhelpful comments

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudClient.java
bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudService.java