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

Fix deadlock in socket code #1466

Merged
merged 1 commit into from
Jan 11, 2025
Merged

Conversation

pguyot
Copy link
Collaborator

@pguyot pguyot commented Jan 10, 2025

Fix a deadlock that was introduced in 555745c and that happens on platforms without recursive locks (e.g. esp32) by removing an unnessary lock in socket_recv.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

Fix a deadlock that was introduced in 555745c
and that happens on platforms without recursive locks (e.g. esp32) by removing
an unnessary lock in `socket_recv`.

Signed-off-by: Paul Guyot <pguyot@kallisys.net>
@bettio bettio merged commit 03dcfa5 into atomvm:main Jan 11, 2025
103 of 106 checks passed
@pguyot pguyot deleted the w02/fix-deadlock-in-sockets branch January 11, 2025 06:53
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