fix(host): abandon close behind a stalled read; race symlink probes; observe cleanup failures

The aborted exit no longer awaits close (Node queues it behind any
in-flight read, chaining the departed caller back onto the very stall
the abort escaped) — the abandoned close's failure is swallowed, it has
no consumer. Symlink stat probes race the signal too, with a
per-candidate abort check between probes, so a stalled probe target
cannot keep a departed request alive. The deferred handle cleanup after
a lost opendir race now consumes its own close failure instead of
leaking it as an unhandled rejection.
This commit is contained in:
creatixchu
2026-07-29 05:32:12 +08:00
parent baaa535235
commit 7d07ab0c9d
6 changed files with 44 additions and 15 deletions

View File

@@ -533,7 +533,7 @@ export interface Config {
}
```
Source: [`packages/host/directory-picker-browse/src/index.ts:170`](../packages/host/directory-picker-browse/src/index.ts)
Source: [`packages/host/directory-picker-browse/src/index.ts:181`](../packages/host/directory-picker-browse/src/index.ts)
## `@deepseek-ai/dsh-host-webserver`