Difference in Finalizer Execution Timing Between Bun and Node.js
there's a difference of behaviour between bun and node here:
visiting that route will print test endpoint finalized immediately in console on Bun,
and on Node only once the user disconnects (as expected).
can only be reproduced with stream. classic response (sleep 5s, then return a HttpServerResponse.text) does not exhibit the issue.
visiting that route will print test endpoint finalized immediately in console on Bun,
and on Node only once the user disconnects (as expected).
can only be reproduced with stream. classic response (sleep 5s, then return a HttpServerResponse.text) does not exhibit the issue.
