-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[miele] Improve multicast implementation #14199
Conversation
fc4ddb1
to
2f8a471
Compare
Fixes openhab#14198 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2f8a471
to
06b3b6f
Compare
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.
Just one question ?
...nding.miele/src/main/java/org/openhab/binding/miele/internal/handler/MieleBridgeHandler.java
Show resolved
Hide resolved
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
Is the search in Github no more working ? If I search with MulticastSocket, I get nothing found ! |
@lolodomo - thanks for the review. Regarding GitHub search, I'm using it less and less as I'm also having problems getting some trustworthy results. |
No search is working, whatever the filled value ! |
I run a grep locally. We have 16 other bindings using |
@lolodomo - only if they use any of the deprecated methods, see https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/net/MulticastSocket.html |
Same for me. https://community.openhab.org/t/searching-openhab-addons-repo-not-giving-any-code-results/143136 |
No response in 6 days... I was beginning to think it was just me lol |
Fixes openhab#14198 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#14198 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
@openhab/add-ons-maintainers - I have been running this version since creating the PR without any issues. It stabilizes the multicast implementation and I wouldn't want to go back to the current 3.4 version in my production system. I would therefore ask you to consider this as a candidate for being cherry-picked into the 3.4.x branch. |
Fixes #14198 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
@jlaur I cherry-picked it to 3.4.x. |
The main intention here was to fix some MulticastSocket deprecation warnings after upgrading to Java 17 - see description in #14198. However, while testing the refactoring needed for this, I came across some other issues that I have fixed as well:
String
was not correct and the resulting string was filled up with trailing null-bytes. This could be seen in logs with log level trace, but there was a work-around in place for correctly handling the received data.Fixes #14198
JARs for testing: