From 0606b792f04801b149d54e9c554b4f5c62ee8cad Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 3 Aug 2009 11:51:06 +0000 Subject: - 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. --- ares/ares_cancel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ares/ares_cancel.c') diff --git a/ares/ares_cancel.c b/ares/ares_cancel.c index 982ebc19f..63b1514e7 100644 --- a/ares/ares_cancel.c +++ b/ares/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 -- cgit v1.2.3