[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r8484: Backport: Warn the user if libevent is 1.1a or earlier and t (in tor/branches/tor-0_1_1-patches: . src/or)



Author: nickm
Date: 2006-09-24 15:25:29 -0400 (Sun, 24 Sep 2006)
New Revision: 8484

Modified:
   tor/branches/tor-0_1_1-patches/ChangeLog
   tor/branches/tor-0_1_1-patches/src/or/config.c
Log:
Backport: Warn the user if libevent is 1.1a or earlier and they are using kqueue or win32 methods.

Modified: tor/branches/tor-0_1_1-patches/ChangeLog
===================================================================
--- tor/branches/tor-0_1_1-patches/ChangeLog	2006-09-24 17:53:09 UTC (rev 8483)
+++ tor/branches/tor-0_1_1-patches/ChangeLog	2006-09-24 19:25:29 UTC (rev 8484)
@@ -17,8 +17,9 @@
     - Fix NetBSD bug that could allow someone to force uninitialized RAM
       to be sent to a server's DNS resolver. This only affects NetBSD and
       other platforms that do not bounds-check tolower().
+    - Warn when using libevent 1.1a or earlier with win32 or kqueue
+      methods: these are known to be buggy.
 
-
 Changes in version 0.1.1.23 - 2006-07-30
   o Major bugfixes:
     - Fast Tor servers, especially exit nodes, were triggering asserts

Modified: tor/branches/tor-0_1_1-patches/src/or/config.c
===================================================================
--- tor/branches/tor-0_1_1-patches/src/or/config.c	2006-09-24 17:53:09 UTC (rev 8483)
+++ tor/branches/tor-0_1_1-patches/src/or/config.c	2006-09-24 19:25:29 UTC (rev 8484)
@@ -3591,7 +3591,7 @@
 
   if (!strcmp(m, "kqueue")) {
     if (!strcmp(v, "1.0c") || !strcmp(v, "1.0d") || !strcmp(v, "1.0e") ||
-        !strcmp(v, "1.1")) {
+        !strcmp(v, "1.1") || !strcmp(v, "1.1a")) {
       buggy = 1;
     }
   } else if (!strcmp(m, "epoll")) {
@@ -3605,6 +3605,11 @@
   } else if (!strcmp(m, "poll")) {
     if (!strcmp(v, "1.0c") || !strcmp(v, "1.0d") || !strcmp(v, "1.0e"))
       slow = 1;
+  } else if (!strcmp(m, "win32")) {
+    if (!strcmp(v, "1.0c") || !strcmp(v, "1.0d") || !strcmp(v, "1.0e") ||
+        !strcmp(v, "1.1") || !strcmp(v, "1.1a")) {
+      buggy = 1;
+    }
   }
 
   if (buggy) {