mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8948] [Issue]: a pending notices DNS lookup delays Restart Server and shutdown on a stalled resolver #8903
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8903
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8948
Originally assigned to: @SpicyMarinara on GitHub.
Summary
While the notices fetch's DNS lookup for
raw.githubusercontent.comis pending, the server can't exit until the lookup returns, and a stalled system resolver can hold that for about 30 s. Affected:admin.routes.ts,process.exit(75));armShutdownDeadline).Details
notices.routes.tsfetches the notices URL at startup and hourly. Node resolves the host withgetaddrinfoon the libuv threadpool, andprocess.exit()waits for pending threadpool work.fetch(url, { redirect: "error", signal: AbortSignal.timeout(10_000) }), thenprocess.exit(75)200 ms later): with a working resolver the process is gone in 0.25 s; with a 15 s simulated lookup stall it's gone only after 15.28 s.process.exit, past the supervisor's window. The tests now turn notices off (#8947's PR), but users with a slow or stalled resolver still see a stalled restart. A launcher Ctrl+C then ends with a SIGKILL after 10 s and exit code 137.app.close()before the exit.Expected
A pending notices lookup never delays the process exiting. For example, resolve the notices host with
dns.resolve4/resolve6(c-ares, off the threadpool) through a customlookupon the fetch dispatcher, keepingredirect: "error"and the 10 s timeout. Add a regression in which a stalled lookup doesn't delayprocess.exit.