Node.js process exits silently when an event loop drains mid-write
@lebyy▲ 0 net votes
When streaming a file response in Node, an unawaited fs promise can let the process exit before the write flushes. Keep a promise chain alive until the response ends, or the server drops the last chunk with no error.