Skip to content

Remove MqttEnvironment.isWebClient and implement proper fix for issue168#191

Merged
shamblett merged 1 commit into
shamblett:pr191from
pogojotz:Remove-global-isWebClient
Feb 15, 2026
Merged

Remove MqttEnvironment.isWebClient and implement proper fix for issue168#191
shamblett merged 1 commit into
shamblett:pr191from
pogojotz:Remove-global-isWebClient

Conversation

@pogojotz

Copy link
Copy Markdown
Contributor

The original fix was more of a hack involving multiple buffer copies and global variable to guide code paths.

The new fix is only one line change in MqttBrowserConnection. The internal buffer size of Uint8Buffer may be larger than Uint8Buffer.length and that was the culprit of the original issue.

The rest of the changes are just reverting the original fix and cleaning up.

…e168`

The original fix was more of a hack involving multiple buffer copies and
global variable to guide code paths.

The new fix is only one line change in MqttBrowserConnection. The internal
buffer size of Uint8Buffer may be larger than Uint8Buffer.length and
that was the culprit of the original issue.

The rest of the changes are just reverting the original fix and cleaning
up.
@shamblett shamblett changed the base branch from master to pr191 February 15, 2026 09:28
@shamblett shamblett merged commit 5945c47 into shamblett:pr191 Feb 15, 2026
2 checks passed
shamblett added a commit that referenced this pull request Feb 15, 2026
…e168` (#191) (#192)

The original fix was more of a hack involving multiple buffer copies and
global variable to guide code paths.

The new fix is only one line change in MqttBrowserConnection. The internal
buffer size of Uint8Buffer may be larger than Uint8Buffer.length and
that was the culprit of the original issue.

The rest of the changes are just reverting the original fix and cleaning
up.

Co-authored-by: Juergen Werner <pogojotz@gmx.net>
@shamblett

Copy link
Copy Markdown
Owner

Great thanks, merged, package re published at version 4.15.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants