Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make gethostbyaddr fail with
ECANCELLED
for ares_cancel()
When `ares_cancel()` was invoked, `ares_gethostbyaddr()` queries would fail with `ENOTFOUND` instead of `ECANCELLED`. It seems appropriate to treat `ares_cancel()` like `ares_destroy()`, but I would appreciate review of the correctness of this change. Ref: nodejs/node#14814
- Loading branch information