-
Notifications
You must be signed in to change notification settings - Fork 7.3k
test-process-active-wraps.js fails on windows #8986
Comments
The failure is apparently related to the removal of these lines. I'm not sure why the extra handle hangs around on Windows when a DNS lookup occurs, but I will restore the relevant code as a bandaid. |
@cjihrig What happens on Windows when a DNS lookup occurs is that both Since the client performs a DNS lookup with For the server, the Thus, on Windows, the On UNIX, the handle is removed from the active handles immediately, so the problem doesn't happen. On Windows, it is not removed immediately because there are still requests pending. One way to fix this issue would be to actually emit the
However, the documentation states that the close event is emitted on the server:
In this interpretation, it makes sense not to wait for the underlying handle to close before emitting the Thus, instead of reverting some part of the original change, maybe we could make the test not to make that assumption anymore, and check for active handles in a |
@misterdjules thanks for looking into this. I already closed the partial revert PR. I think I came up with a solution after talking with @piscisaureus on nodejs/node#246. I plan to PR it tomorrow morning. |
Closed via 1fad373 |
It seems that commit b636ba8 introduced the following regression on Windows:
@cjihrig Would you mind taking a look?
The text was updated successfully, but these errors were encountered: