Help with auto-unreference #41
-
I'm trying to use the new unref feature added in undici v4-rc.1 I've implemented a similar unref test that works as expected: https://github.com/Ethan-Arrowood/undici-fetch/blob/new-api/test/fetch/unref.js Output:
But then when I try to implement a basic GET test it hangs for the 4 second timeout: https://github.com/Ethan-Arrowood/undici-fetch/blob/new-api/test/fetch/get.js Output:
Any ideas @ronag @mcollina ? (FWIW this is all on the new-api branch if you want to dig into the code) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
what's the problem? I didn't get it. The test pass and there is a tap deprecation. |
Beta Was this translation helpful? Give feedback.
-
If you want to avoid the problem, you need to add a |
Beta Was this translation helpful? Give feedback.
If you want to avoid the problem, you need to add a
Connection: close
header to tellundici
to close the connection.