aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 0c0933ca8..60172b395 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3654,7 +3654,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
/* Continue connectdata initialization here.
*
* Inherit the proper values from the urldata struct AFTER we have arranged
- * the persistent conncetion stuff */
+ * the persistent connection stuff */
conn->fread = data->set.fread;
conn->fread_in = data->set.in;
@@ -3999,6 +3999,10 @@ CURLcode Curl_done(struct connectdata **connp,
Curl_pgrsDone(conn); /* done with the operation */
+ /* for ares-using, make sure all possible outstanding requests are properly
+ cancelled before we proceed */
+ ares_cancel(data->state.areschannel);
+
/* if data->set.reuse_forbid is TRUE, it means the libcurl client has
forced us to close this no matter what we think.