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

[Backport v3.5-branch] net: mqtt: Fix possible socket leak with websocket transport #75505

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Jul 5, 2024

Backport 4625fa7 from #75363.

Fixes: #75334

In case underlying TCP/TLS connection is already down, the
websocket_disconnect() call is expected to fail, as it involves
communication. Therefore, mqtt_client_websocket_disconnect() should not
quit early in such cases, as it could lead to an underlying socket leak.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit 4625fa7)
@zephyrbot zephyrbot added the Backport Backport PR and backport failure issues label Jul 5, 2024
@zephyrbot zephyrbot requested a review from rlubos as a code owner July 5, 2024 10:30
@henrikbrixandersen henrikbrixandersen added this to the v3.5.1 milestone Jul 5, 2024
@fabiobaltieri fabiobaltieri merged commit fcd271d into v3.5-branch Jul 9, 2024
21 checks passed
@fabiobaltieri fabiobaltieri deleted the backport-75363-to-v3.5-branch branch July 9, 2024 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking Backport Backport PR and backport failure issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants