deno
21c7ff98 - test(ext/fetch): pin ref'd watcher keeps engaged body alive until close

Commit
168 days ago
test(ext/fetch): pin ref'd watcher keeps engaged body alive until close Addresses review feedback: add a regression test for the engage-then- abandon-without-cancel case. A child process reads a response prefix, then abandons the reader (no further read, no cancel/releaseLock). The ref'd op_fetch_response_closed watcher keeps its event loop alive until the server closes the connection, at which point reader.closed settles. If the watcher were unref'd, the child would exit before observing the close and never print SETTLED.
Author
Parents
Loading