Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[innogysmarthome] Reconnect fixes (#8182) #8318

Merged
merged 22 commits into from
Aug 20, 2020
Merged

[innogysmarthome] Reconnect fixes (#8182) #8318

merged 22 commits into from
Aug 20, 2020

Conversation

Novanic
Copy link
Contributor

@Novanic Novanic commented Aug 19, 2020

This pull-request fixes a few reconnect problems regarding the WebSocket, see issue #8182 for more information

  • When an error occurred while starting the websocket, no reconnect attempt was started which caused that the binding loses the connection (till the next restart of the server or binding), see issue [innogysmarthome] Insufficient reconnect attempts #8182 for more information
  • When an error occurs, it is now waited at least for 30 seconds for the next reconnect attempt to avoid too many requests (on re-occurring errors).
  • Fix for a side-effect of "Fix possible resource leak [innogysmarthome] Fix possible resource leak #8080" (the websocket were closed unnormally by default which could trigger false and about one reconnect attempt per second).
  • NullPointerException fixed

Novanic and others added 21 commits June 10, 2020 19:50
…oo many requests (on re-occurring errors).

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
…proved by not rescheduling when the close/stop was actively triggered by the binding (in this case there is already a reschedule triggered)

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
- Code-Optimization

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
@Hilbrand Hilbrand added the bug An unexpected problem or unintended behavior of an add-on label Aug 20, 2020
Copy link
Member

@Hilbrand Hilbrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. only a small style comment, which I'll fix with GitHub commit suggestion.

…openhab/binding/innogysmarthome/internal/InnogyWebSocket.java
@Hilbrand Hilbrand merged commit b621062 into openhab:2.5.x Aug 20, 2020
@Hilbrand Hilbrand added this to the 2.5.8 milestone Aug 20, 2020
@Novanic
Copy link
Contributor Author

Novanic commented Aug 20, 2020

@Hilbrand Please revert the change again... :-( I don't understand what's going on with this binding... I tested it for weeks and now since it is merged I get rapid (re-)connect attempts again...

Please revert it shortly before the release of 2.5.8 (which may be built tomorrow?!).

@Novanic
Copy link
Contributor Author

Novanic commented Aug 20, 2020

Revert pull-request: #8324

Hilbrand pushed a commit that referenced this pull request Aug 21, 2020
This reverts commit b621062.

Reopens #8182

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
@Hilbrand Hilbrand removed this from the 2.5.8 milestone Aug 21, 2020
taboneclayton pushed a commit to taboneclayton/openhab-addons that referenced this pull request Aug 23, 2020
* When an error occurs, it is waited at least for 30 seconds to avoid too many requests (on re-occurring errors).
* Workaround for side-effect of "Fix possible resource leak openhab#8080" - Improved by not rescheduling when the close/stop was actively triggered by the binding (in this case there is already a reschedule triggered)
* NPE fixed
* Code-Optimization

Closes openhab#8182

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
Signed-off-by: Clayton Tabone <taboneclayton@gmail.com>
taboneclayton pushed a commit to taboneclayton/openhab-addons that referenced this pull request Aug 23, 2020
…" (openhab#8324)

This reverts commit b621062.

Reopens openhab#8182

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
Signed-off-by: Clayton Tabone <taboneclayton@gmail.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* When an error occurs, it is waited at least for 30 seconds to avoid too many requests (on re-occurring errors).
* Workaround for side-effect of "Fix possible resource leak openhab#8080" - Improved by not rescheduling when the close/stop was actively triggered by the binding (in this case there is already a reschedule triggered)
* NPE fixed
* Code-Optimization

Closes openhab#8182 

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
…" (openhab#8324)

This reverts commit b621062.

Reopens openhab#8182

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* When an error occurs, it is waited at least for 30 seconds to avoid too many requests (on re-occurring errors).
* Workaround for side-effect of "Fix possible resource leak openhab#8080" - Improved by not rescheduling when the close/stop was actively triggered by the binding (in this case there is already a reschedule triggered)
* NPE fixed
* Code-Optimization

Closes openhab#8182 

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
…" (openhab#8324)

This reverts commit b621062.

Reopens openhab#8182

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* When an error occurs, it is waited at least for 30 seconds to avoid too many requests (on re-occurring errors).
* Workaround for side-effect of "Fix possible resource leak openhab#8080" - Improved by not rescheduling when the close/stop was actively triggered by the binding (in this case there is already a reschedule triggered)
* NPE fixed
* Code-Optimization

Closes openhab#8182 

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
…" (openhab#8324)

This reverts commit b621062.

Reopens openhab#8182

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* When an error occurs, it is waited at least for 30 seconds to avoid too many requests (on re-occurring errors).
* Workaround for side-effect of "Fix possible resource leak openhab#8080" - Improved by not rescheduling when the close/stop was actively triggered by the binding (in this case there is already a reschedule triggered)
* NPE fixed
* Code-Optimization

Closes openhab#8182 

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
…" (openhab#8324)

This reverts commit b621062.

Reopens openhab#8182

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
DaanMeijer pushed a commit to DaanMeijer/openhab-addons that referenced this pull request Sep 1, 2020
* When an error occurs, it is waited at least for 30 seconds to avoid too many requests (on re-occurring errors).
* Workaround for side-effect of "Fix possible resource leak openhab#8080" - Improved by not rescheduling when the close/stop was actively triggered by the binding (in this case there is already a reschedule triggered)
* NPE fixed
* Code-Optimization

Closes openhab#8182 

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
Signed-off-by: Daan Meijer <daan@studioseptember.nl>
DaanMeijer pushed a commit to DaanMeijer/openhab-addons that referenced this pull request Sep 1, 2020
…" (openhab#8324)

This reverts commit b621062.

Reopens openhab#8182

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
Signed-off-by: Daan Meijer <daan@studioseptember.nl>
CSchlipp pushed a commit to CSchlipp/openhab-addons that referenced this pull request Sep 12, 2020
* When an error occurs, it is waited at least for 30 seconds to avoid too many requests (on re-occurring errors).
* Workaround for side-effect of "Fix possible resource leak openhab#8080" - Improved by not rescheduling when the close/stop was actively triggered by the binding (in this case there is already a reschedule triggered)
* NPE fixed
* Code-Optimization

Closes openhab#8182 

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
CSchlipp pushed a commit to CSchlipp/openhab-addons that referenced this pull request Sep 12, 2020
…" (openhab#8324)

This reverts commit b621062.

Reopens openhab#8182

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this pull request Sep 19, 2020
* When an error occurs, it is waited at least for 30 seconds to avoid too many requests (on re-occurring errors).
* Workaround for side-effect of "Fix possible resource leak openhab#8080" - Improved by not rescheduling when the close/stop was actively triggered by the binding (in this case there is already a reschedule triggered)
* NPE fixed
* Code-Optimization

Closes openhab#8182 

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this pull request Sep 19, 2020
…" (openhab#8324)

This reverts commit b621062.

Reopens openhab#8182

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants