summaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-04-07 12:17:20 -0400
committerNick Mathewson <nickm@torproject.org>2011-04-07 12:17:20 -0400
commit67d88a7d6021e95a2d423a9f26811accd1da39b6 (patch)
tree30d48f5f922b928f7727ed812905101e5bf24012 /src/common/compat_libevent.c
parent07ab483e62457ee56187037304f25ec50cb0850a (diff)
parentba0cd8094f8e6ae0113ad69958d9d0973bb1f2c3 (diff)
downloadtor-67d88a7d6021e95a2d423a9f26811accd1da39b6.tar.gz
tor-67d88a7d6021e95a2d423a9f26811accd1da39b6.zip
Merge remote-tracking branch 'origin/maint-0.2.2'
Conflicts: src/common/address.c src/common/compat_libevent.c src/common/memarea.c src/common/util.h src/or/buffers.c src/or/circuitbuild.c src/or/circuituse.c src/or/connection.c src/or/directory.c src/or/networkstatus.c src/or/or.h src/or/routerlist.c
Diffstat (limited to 'src/common/compat_libevent.c')
-rw-r--r--src/common/compat_libevent.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c
index 48a5b326c8..7924036e61 100644
--- a/src/common/compat_libevent.c
+++ b/src/common/compat_libevent.c
@@ -354,21 +354,12 @@ tor_check_libevent_version(const char *m, int server,
version = tor_get_libevent_version(&v);
- /* It would be better to disable known-buggy methods than to simply
- warn about them. However, it's not trivial to get libevent to change its
- method once it's initialized, and it's not trivial to tell what method it
- will use without initializing it.
-
- If we saw that the version was definitely bad, we could disable all the
- methods that were bad for that version. But the issue with that is that
- if you've found a libevent before 1.1, you are not at all guaranteed to
- have _any_ good method to use.
-
- As of Libevent 2, we can do better, and have more control over what
- methods get used. But the problem here is that there are no versions of
- Libevent 2 that have buggy event cores, so there's no point in writing
- disable code yet.
- */
+ /* It would be better to disable known-buggy methods rather than warning
+ * about them. But the problem is that with older versions of Libevent,
+ * it's not trivial to get them to change their methods once they're
+ * initialized... and with newer versions of Libevent, they aren't actually
+ * broken. But we should revisit this if we ever find a post-1.4 version
+ * of Libevent where we need to disable a given method. */
if (!strcmp(m, "kqueue")) {
if (version < V_OLD(1,1,'b'))
buggy = 1;