Skip to content

Commit dda9622

Browse files
authored
Fix crash when dispose() arrives before connection initialization (#91)
Closes a race where calling dispose() on a connection actor before internal initialization completed could crash with an unreachable state error.
1 parent 1b04dd5 commit dda9622

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Fix crash when dispose() arrives before connection initialization
2+
3+
Fixed a crash that could occur when `dispose()` was called on a connection actor before its internal initialization completed. The race between initialization and disposal is unlikely but was observed on macOS arm64 CI.

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The `ssl` option is required because this library and lori depend on the `ssl` p
1616

1717
Package: `stallion` (repo name is `stallion`, Pony package name is `stallion`)
1818

19-
Built on lori (v0.12.0). Lori provides raw TCP I/O with a connection-actor model: `_on_received(data: Array[U8] iso)` for incoming data, `TCPConnection.send(data): (SendToken | SendError)` for outgoing, plus backpressure notifications, SSL support, per-connection ASIO-level idle timers, and general-purpose one-shot timers.
19+
Built on lori (v0.13.0). Lori provides raw TCP I/O with a connection-actor model: `_on_received(data: Array[U8] iso)` for incoming data, `TCPConnection.send(data): (SendToken | SendError)` for outgoing, plus backpressure notifications, SSL support, per-connection ASIO-level idle timers, and general-purpose one-shot timers.
2020

2121
### Key design decisions
2222

corral.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"deps": [
1414
{
1515
"locator": "github.com/ponylang/lori.git",
16-
"version": "0.12.0"
16+
"version": "0.13.0"
1717
},
1818
{
1919
"locator": "github.com/ponylang/ssl.git",

0 commit comments

Comments
 (0)