Repository navigation
fix(native): detect daemon startup failure to avoid 10s stall on init - #2349
Merged
Merged
Conversation
On Linux, a daemon that failed to exec or exited before signaling ready stalled `sentry_init` until the ready timeout. Watch the message socket during the wait, which only becomes readable when the daemon exits. Ref: getsentry/sentry-dart#3585
mujacica
approved these changes
Nov 26, 2026
JoshuaMoelans
approved these changes
Nov 27, 2026
A daemon that `CreateProcess` started but that exited before signaling ready still stalled `sentry_init` until the ready timeout. Keep the daemon's process handle and wait on it along with the ready event. Ref: getsentry/sentry-dart#3585
Collaborator
Author
|
At first, this only targeted Linux, where the problem was most apparent due to potentially missing +x. However, it turns out the same problem was also partially applicable to Windows. Even if |
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.
Originates from the LLM analysis at:
A daemon that failed to exec or exited before signaling ready stalled
sentry_inituntil the 10s ready timeout, e.g. after a failed deployment or a missing +x. The ready wait now returns as soon as the daemon exits, which it detects through the message socket on Linux and the daemon's process handle on Windows.