Skip to content
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

[IMPROVED] MQTT error message when client connects with websocket #2151

Merged
merged 1 commit into from
Apr 22, 2021

Conversation

kozlovic
Copy link
Member

Websocket is currently not supported for MQTT clients. When a
client tries to connect with websocket protocol to the MQTT port,
the error message: mid:9 - not connected would be logged, which
is not really telling.

The server will now guess if the connection was websocket and report
a more appropriate error message, such as:

invalid connection, websocket currently not supported

Resolves #2126

Signed-off-by: Ivan Kozlovic ivan@synadia.com

Websocket is currently not supported for MQTT clients. When a
client tries to connect with websocket protocol to the MQTT port,
the error message: `mid:9 - not connected` would be logged, which
is not really telling.

The server will now guess if the connection was websocket and report
a more appropriate error message, such as:
```
invalid connection, websocket currently not supported
```

Resolves #2126

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@kozlovic kozlovic requested a review from aricart April 22, 2021 15:13
Copy link
Member

@aricart aricart left a comment

Choose a reason for hiding this comment

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

LGTM

@kozlovic kozlovic merged commit 9654604 into master Apr 22, 2021
@kozlovic kozlovic deleted the fix_2126 branch April 22, 2021 15:27
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.

[SUGGESTION]More detailed error messages when MQTT client failed to connect
2 participants