Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Friendly TLS mismatch errors#16342

Merged
mkuratczyk merged 2 commits into
mainfrom
friendly-tls-mismatch-errors
May 7, 2026
Merged

Friendly TLS mismatch errors#16342
mkuratczyk merged 2 commits into
mainfrom
friendly-tls-mismatch-errors

Conversation

@mkuratczyk
Copy link
Copy Markdown
Contributor

When someone mistakenly tried to connect without TLS
to a TLS-enabled listener or with TLS to a non-TLS
listener, we logged all kinds of confusing errors
(bad headers, unexpected messages, frame too large, etc).

Now we just log a user-friendly message

mkuratczyk added 2 commits May 7, 2026 12:32
When someone mistakenly tried to connect without TLS
to a TLS-enabled listener or wit TLS to a non-TLS
listener, we logged all kinds of confusing errors
(bad headers, unexpected messages, frame too large, etc).
Now we just log a user-friendly message
@mergify mergify Bot added the make label May 7, 2026
@mkuratczyk mkuratczyk marked this pull request as ready for review May 7, 2026 11:15
Copy link
Copy Markdown
Contributor

@lhoguin lhoguin left a comment

Choose a reason for hiding this comment

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

LGTM. I was wondering about log_level vs log_alert and log_alert is deprecated in favor of log_level so all is good.

@mkuratczyk mkuratczyk merged commit 678fec2 into main May 7, 2026
188 checks passed
@mkuratczyk mkuratczyk deleted the friendly-tls-mismatch-errors branch May 7, 2026 11:47
mkuratczyk added a commit that referenced this pull request May 7, 2026
* run-tls-broker enables TLS for MQTT, STOMP and STREAM

* Graceful handling of TLS/non-TLS mismatch

When someone mistakenly tried to connect without TLS
to a TLS-enabled listener or wit TLS to a non-TLS
listener, we logged all kinds of confusing errors
(bad headers, unexpected messages, frame too large, etc).
Now we just log a user-friendly message

(cherry picked from commit 678fec2)

Co-authored-by: Michal Kuratczyk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants