mirror of
https://frontier.innolan.net/rainlance/c-ares.git
synced 2026-10-21 07:10:31 +00:00
- 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.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user