Skip to content

Use failable methods to avoid a panicking deadlock#112

Merged
jamesmunns merged 1 commit intomainfrom
james/avoid-deadlock
Aug 30, 2025
Merged

Use failable methods to avoid a panicking deadlock#112
jamesmunns merged 1 commit intomainfrom
james/avoid-deadlock

Conversation

@jamesmunns
Copy link
Copy Markdown
Owner

For example, if we were to try to send data while sending data, this will now return an error, instead of likely panicking.

This may have been part of the issue Tommaso saw when adding log support for ergot: if we tried to send a log WHILE sending another packet, the mutex would already be locked.

@jamesmunns jamesmunns merged commit 84e3155 into main Aug 30, 2025
5 checks passed
@jamesmunns jamesmunns deleted the james/avoid-deadlock branch August 30, 2025 11:05
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