Skip to content

Fix crash when closing a Session before connection initialization completes#184

Merged
SeanTAllen merged 1 commit intomainfrom
update-lori-0.13.0
Mar 28, 2026
Merged

Fix crash when closing a Session before connection initialization completes#184
SeanTAllen merged 1 commit intomainfrom
update-lori-0.13.0

Conversation

@SeanTAllen
Copy link
Copy Markdown
Member

Closing a Session immediately after creating it could crash if the close message arrived before the underlying connection actor finished its internal initialization. This was a race condition between Pony's causal messaging guarantees — the initialization message (self-to-self) and the close message (external sender) have no ordering guarantee. The race was unlikely but was observed on macOS arm64.

Updates lori to 0.13.0.

…pletes

Update lori to 0.13.0 which fixes a race where dispose() could arrive
before internal initialization completed, causing a crash.
@SeanTAllen SeanTAllen added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Mar 28, 2026
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Mar 28, 2026
@SeanTAllen SeanTAllen merged commit 9b10565 into main Mar 28, 2026
11 checks passed
@SeanTAllen SeanTAllen deleted the update-lori-0.13.0 branch March 28, 2026 03:17
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Mar 28, 2026
github-actions bot pushed a commit that referenced this pull request Mar 28, 2026
github-actions bot pushed a commit that referenced this pull request Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants