* fix(webdav): GET pipes the file without stacking close listeners on the response
stream.pipeline put seven close listeners on the response. With metering,
compression, the concurrency gate and request tracing on top, every WebDAV
download crossed Node's ten-listener warning. GET now uses pipeToResponse,
like the other file download routes.
* fix(drivers): a streamed result stops its source on unpipe instead of its own close listener
pipe already unpipes when the response finishes, closes or fails, so the
extra close listener only spent part of the response's listener budget. The
routes that hold a response open now have a test that keeps each within that
budget.
* refactor(http): everything that waits on a response's close shares one listener
Egress metering, the concurrency gate, the large-body budget, route
lifecycle events, driver call slots, disconnect aborts and SSE writers each
put their own close listener on the response. They now register callbacks
with onResponseClose, which keeps one listener per response and runs them in
the order added, so a streamed response holds three close listeners instead
of five or six and request tracing has room for its own.
* test(webdav): handle streamed response errors in test sink
Co-authored-by: Salazareo <25314977+Salazareo@users.noreply.github.com>
* test(webdav): a storage failure mid-download is covered against a real response
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Salazareo <25314977+Salazareo@users.noreply.github.com>