Skip to content

Fix message retrieval blocking node lock - #863

Open
4z3 wants to merge 1 commit into
threefoldtech:mainfrom
4z3:fix-message-lock-deadlock
Open

4z3 wants to merge 1 commit into
threefoldtech:mainfrom
4z3:fix-message-lock-deadlock

Conversation

@4z3

@4z3 4z3 commented Oct 13, 2026 •

Copy link
Copy Markdown

Clone the message stack before awaiting a message so the node mutex is released while waiting for incoming messages.

Add a Linux-only regression test to verify that the node lock remains available while a message retrieval request is pending.

I'm not fully certain that this doesn't break existing assumptions, but all tests are passing, and it allows POSTing /api/v1/messages while there is an active waiting GET request.

Clone the message stack before awaiting a message so the node mutex
is released while waiting for incoming messages.

Add a Linux-only regression test to verify that the node lock remains
available while a message retrieval request is pending.
@4z3
4z3 requested a review from LeeSmet as a code owner October 13, 2026 06:22
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.

1 participant