aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-07-20 22:49:29 +0200
committerMax Kellermann <max@duempel.org>2010-07-20 22:55:13 +0200
commit1f976d6e543aca95f2fdfb64f970446e94ad5796 (patch)
treed83cf65a2eb1957b95609457ba554041dfbd0f6e /src
parenta4908dca428dda7a3e83bfaf0d7e96d2b6242b73 (diff)
input/curl: remove assertion after curl_multi_fdset()
Some users reported that MPD crashes when using a new CURL version with the threaded DNS resolver enabled. It seems that curl_multi_fdset() returns no file descriptor when the DNS resolver runs in another thread, so MPD does not have any event to wait for. On the CURL mailing list, somebody suggested to sleep for a fixed amount of time. This is not an elegant solution, because daemons should never have to sleep without waiting for an event. I hope the CURL developers will review the API and remove the threaded DNS resolver. Meanwhile, I'm removing the assertion in question, to allow those unfortunate users running the latest CURL version to continue using MPD.
Diffstat (limited to 'src')
-rw-r--r--src/input/curl_input_plugin.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/input/curl_input_plugin.c b/src/input/curl_input_plugin.c
index ff1ac85c..c176f20d 100644
--- a/src/input/curl_input_plugin.c
+++ b/src/input/curl_input_plugin.c
@@ -259,8 +259,6 @@ input_curl_select(struct input_curl *c)
return -1;
}
- assert(max_fd >= 0);
-
#if LIBCURL_VERSION_NUM >= 0x070f00
long timeout2;
mcode = curl_multi_timeout(c->multi, &timeout2);