-
-
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
[lgwebos] Improved WebSocket reconnect/disconnect #8038
Conversation
Related to openhab#8027 Signed-off-by: Laurent Garnier <[email protected]>
Travis tests have failedHey @lolodomo, |
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.
I am not convinced that there is a memory leak, and that it gets fixed by cancelling the future. However this may prevent some issues when establishing the connection takes longer than our polling interval.
Please do not add a condition on stopping the client.
...inding.lgwebos/src/main/java/org/openhab/binding/lgwebos/internal/LGWebOSHandlerFactory.java
Outdated
Show resolved
Hide resolved
...ding.lgwebos/src/main/java/org/openhab/binding/lgwebos/internal/handler/LGWebOSTVSocket.java
Outdated
Show resolved
Hide resolved
Just to be clear, there was no memory leak in the binding, it was explained why in the issue. Or maybe only in a very particular case while the thing handler was disposed during the WebSocket connection. @J-N-K : regarding the test with isStarted() before stopping the client, can you please comment ? You have now applied this pattern in all bindings. Should we revert ? |
Signed-off-by: Laurent Garnier <[email protected]>
Hey @lolodomo, TravisCI finished with status TravisBuddy Request Identifier: 14a5afc0-be08-11ea-a595-8f8781864445 |
Signed-off-by: Laurent Garnier <[email protected]>
@sprehn : please have a new look, I added the call to destroy() |
Travis tests have failedHey @lolodomo, |
...ding.lgwebos/src/main/java/org/openhab/binding/lgwebos/internal/handler/LGWebOSTVSocket.java
Outdated
Show resolved
Hide resolved
Travis fails unrelated |
...inding.lgwebos/src/main/java/org/openhab/binding/lgwebos/internal/LGWebOSHandlerFactory.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Laurent Garnier <[email protected]>
Travis tests have failedHey @lolodomo, |
Can this PR be finally merged, please ? |
Related to openhab#8027 Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: CSchlipp <[email protected]>
Related to openhab#8027 Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: MPH80 <[email protected]>
Related to openhab#8027 Signed-off-by: Laurent Garnier <[email protected]>
Related to openhab#8027 Signed-off-by: Laurent Garnier <[email protected]>
Related to openhab#8027 Signed-off-by: Laurent Garnier <[email protected]>
Related to openhab#8027 Signed-off-by: Laurent Garnier <[email protected]>
Related to openhab#8027 Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: Daan Meijer <[email protected]>
Related to openhab#8027 Signed-off-by: Laurent Garnier <[email protected]>
Related to #8027
Signed-off-by: Laurent Garnier [email protected]