Repository navigation
fix(stdlib): honor proc_lib startup timeouts - #91
Merged
Merged
Conversation
Return {error, timeout} after stopping an unacknowledged child, without terminating the caller.
Preserve unrelated mailbox messages, successful startup links and existing startup-crash results.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A finite process-startup timeout could wait forever when the child never acknowledged initialization.
What changed
Before and after
Before: The original implementation failed the regression's startup watchdog instead of honoring its finite timeout.
After: Finite and zero timeouts now match BEAM; four execution configurations each completed ten regression runs.
This changes library-call results and process lifetime, not a screen; real native and BEAM process transcripts demonstrate the behavior.
Checked
Live validation: Demonstrated for this version. 2 of 2 scenarios driven live in the product.
How it was checked
cargo build --release --locked -p nera-runtime -j 4; cargo build --release --locked -p nera -j 4; cargo build --release --locked -j 4
cargo clippy --workspace --all-targets --locked -j 4 -- -D warnings
umask 022; cargo test --workspace --locked --no-fail-fast -j 4
python3 scripts/test-allocator-config.py; ./target/release/nera test -j 1 --timeout 30; python3 scripts/test-stacktrace-order.py
Ten consecutive runs each on native default schedulers, NERA_SCHEDULERS=1, OTP 27 and renamed Nera proc_lib on BEAM; fresh four-configuration post-review run.
Risk
Risk: low in every dimension.
Full risk assessment
Not done
Spawn options remain ignored. Other native platforms and Ranch/Cowboy integration were not revalidated.