-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[shelly] Misc changes (small fixes, log improvements, hardened leak prevention on #15922
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
Conversation
exceptions) Signed-off-by: Markus Michels <markus7017@gmail.com>
|
@lolodomo I put this small PR together to include small fixes before adding new features |
|
@wborn Could you confirm hat 4.1 has jetty web socket server artifact as part of the core bundle so I could remove the dependency in pom. xml? |
lolodomo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review part 1 of 2 (until Shelly2RpcSocket)
...inding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1CoapHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Markus Michels <markus7017@gmail.com>
|
@lolodomo changes applied |
Yes it would be better to remove it so it uses the core dependency at compile time: |
ok, that's what #15920 brings in, just want to double check avoiding unresolved dependency on production systems |
consolidated API exception handling in base handler (init, command, status refresh) Signed-off-by: Markus Michels <markus7017@gmail.com>
I think that should also work. |
|
@lolodomo fyi: we did additional testing with this code level and LGTM |
lolodomo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final review. Just one small comment
bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/i18n/shelly.properties
Outdated
Show resolved
Hide resolved
Signed-off-by: Markus Michels <markus7017@gmail.com>
|
@lolodomo changes applied |
lolodomo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you
…revention on (openhab#15922) * Misc changes (same fixes, log improvements, hardened leak prevention on exceptions) --------- Signed-off-by: Markus Michels <markus7017@gmail.com>
|
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
|
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
…revention on (openhab#15922) * Misc changes (same fixes, log improvements, hardened leak prevention on exceptions) --------- Signed-off-by: Markus Michels <markus7017@gmail.com> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
This PR brings some smaller likes and improvements + hardened handling for leak prevention to avoid loosing sockets on initialization/discovery problems.
Closing #15919
Closing #15920