Преглед на файлове

Give a warning when bufferevents are enabled.

Ticket 9147.
Nick Mathewson преди 11 години
родител
ревизия
c955149271
променени са 2 файла, в които са добавени 11 реда и са изтрити 0 реда
  1. 4 0
      changes/bug9147
  2. 7 0
      src/or/main.c

+ 4 - 0
changes/bug9147

@@ -0,0 +1,4 @@
+  o Minor features:
+    - Issue a warning when running with the bufferevents backend enabled.
+      It's still not stable, and people should know that they're likely
+      to hit unexpected problems. Closes ticket 9147.

+ 7 - 0
src/or/main.c

@@ -1882,6 +1882,13 @@ do_main_loop(void)
     }
   }
 
+#ifdef USE_BUFFEREVENTS
+  log_warn(LD_GENERAL, "Tor was compiled with the --enable-bufferevents "
+           "option. This is still experimental, and might cause strange "
+           "bugs. If you want a more stable Tor, be sure to build without "
+           "--enable-bufferevents.");
+#endif
+
   handle_signals(1);
 
   /* load the private keys, if we're supposed to have them, and set up the