openhab-addons: Proper closing of WebSockets to avoid memory leak / crash

It was recently discovered 2 bindings not correctly closing WebSockets. This leads to memory leak and even openHAB crash. I think it would be good to check that all bindings using WebSockets are correctly closing WebSockets.

I found 12 bindings using WebSockets:

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 27 (27 by maintainers)

Commits related to this issue

Most upvoted comments

As I mentioned earlier, I believe there is a risk in case the connection retry would occur more frequently than the connect timeout. For the LGwebOS binding, if the connect timeout is set to 1s, there is no risk. By the way, handling the connection future cannot be a wrong thing.