diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-08-03 11:51:06 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-08-03 11:51:06 +0000 |
commit | 408df8efcdc7d724e3c94c2ae14b9b35372f95c4 (patch) | |
tree | 4e897543572f1c3b15cb29cdd1dc6881413952f1 /ares_cancel.c | |
parent | d0a8c3b68bcea7c790bcb7c338aea0411def3fba (diff) | |
download | c-ares-408df8efcdc7d724e3c94c2ae14b9b35372f95c4.tar.gz c-ares-408df8efcdc7d724e3c94c2ae14b9b35372f95c4.tar.bz2 c-ares-408df8efcdc7d724e3c94c2ae14b9b35372f95c4.zip |
- Timo Teras changed the reason code used in the resolve callback done when
ares_cancel() is used, to be ARES_ECANCELLED instead of ARES_ETIMEOUT to
better allow the callback to know what's happening.
Diffstat (limited to 'ares_cancel.c')
-rw-r--r-- | ares_cancel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_cancel.c b/ares_cancel.c index 982ebc1..63b1514 100644 --- a/ares_cancel.c +++ b/ares_cancel.c @@ -36,7 +36,7 @@ void ares_cancel(ares_channel channel) { query = list_node->data; list_node = list_node->next; /* since we're deleting the query */ - query->callback(query->arg, ARES_ETIMEOUT, 0, NULL, 0); + query->callback(query->arg, ARES_ECANCELLED, 0, NULL, 0); ares__free_query(query); } #ifndef NDEBUG |