Skip to content

[zwavejs] Ignore problematic websocket messages - #21458

Merged
jlaur merged 1 commit into
openhab:mainfrom
lsiepel:fix/zwavejs-connection-robustness
Aug 23, 2026
Merged

[zwavejs] Ignore problematic websocket messages#21458
jlaur merged 1 commit into
openhab:mainfrom
lsiepel:fix/zwavejs-connection-robustness

Conversation

@lsiepel

@lsiepel lsiepel commented Aug 22, 2026

Copy link
Copy Markdown
Contributor
  • Ignore malformed or unsupported individual messages without incorrectly marking the active connection offline.
  • Align the client fallback message size with the documented 16 MiB default.
  • Adds tests to connection handling

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
@lsiepel lsiepel added the bug An unexpected problem or unintended behavior of an add-on label Aug 22, 2026
@lsiepel
lsiepel requested a review from a team August 22, 2026 21:03

@jlaur jlaur left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, LGTM.

public String hostname = "";
public int port = 3000;
public int maxMessageSize = 2097152;
public int maxMessageSize = DEFAULT_MAX_MESSAGE_SIZE;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verified that it corresponds to what's already here:

@jlaur
jlaur merged commit f3f296f into openhab:main Aug 23, 2026
3 checks passed
@jlaur jlaur added this to the 5.3 milestone Aug 23, 2026
@lsiepel
lsiepel deleted the fix/zwavejs-connection-robustness branch August 23, 2026 20:36
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Aug 28, 2026
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
@lolodomo

Copy link
Copy Markdown
Contributor

What about backporting that fix to 5.2.x branch ?

@lsiepel

lsiepel commented Aug 29, 2026

Copy link
Copy Markdown
Contributor Author

Yes please!

lolodomo pushed a commit that referenced this pull request Aug 29, 2026
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
@lolodomo

Copy link
Copy Markdown
Contributor

Backported

@lolodomo lolodomo added the backported A PR that has been cherry-picked to a patch release branch label Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported A PR that has been cherry-picked to a patch release branch bug An unexpected problem or unintended behavior of an add-on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants