summarylogtreecommitdiffstats
path: root/10_fix-resolver.patch
diff options
context:
space:
mode:
authoroli2015-06-12 22:00:38 +0200
committeroli2015-06-12 22:00:38 +0200
commitd0c1d0e78c5803d7120763d78e928ffa00c1eb5b (patch)
tree73f88efa43423484aa17710d17594eac1557e981 /10_fix-resolver.patch
downloadaur-d0c1d0e78c5803d7120763d78e928ffa00c1eb5b.tar.gz
Initial import
Diffstat (limited to '10_fix-resolver.patch')
-rw-r--r--10_fix-resolver.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/10_fix-resolver.patch b/10_fix-resolver.patch
new file mode 100644
index 000000000000..3cc274a14171
--- /dev/null
+++ b/10_fix-resolver.patch
@@ -0,0 +1,29 @@
+From d9762a7cdb35e70f8cb0bf1c2f8019e8391616e1 Mon Sep 17 00:00:00 2001
+From: Daniel Stenberg <daniel@haxx.se>
+Date: Tue, 23 Sep 2014 11:44:03 +0200
+Subject: [PATCH] threaded-resolver: revert Curl_expire_latest() switch
+
+The switch to using Curl_expire_latest() in commit cacdc27f52b was a
+mistake and was against the advice even mentioned in that commit. The
+comparison in asyn-thread.c:Curl_resolver_is_resolved() makes
+Curl_expire() the suitable function to use.
+
+Bug: http://curl.haxx.se/bug/view.cgi?id=1426
+Reported-By: graysky
+---
+ lib/asyn-thread.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c
+index e4ad32b..6cdc9ad 100644
+--- a/lib/asyn-thread.c
++++ b/lib/asyn-thread.c
+@@ -541,7 +541,7 @@ CURLcode Curl_resolver_is_resolved(struct connectdata *conn,
+ td->poll_interval = 250;
+
+ td->interval_end = elapsed + td->poll_interval;
+- Curl_expire_latest(conn->data, td->poll_interval);
++ Curl_expire(conn->data, td->poll_interval);
+ }
+
+ return CURLE_OK;