[tor-commits] [tor/master] Give a warning when bufferevents are enabled.

nickm at torproject.org nickm at torproject.org
Sat Jun 29 07:52:16 UTC 2013


commit c9551492715c0b840f65992692581eb555c0930d
Author: Nick Mathewson <nickm at torproject.org>
Date:   Sat Jun 29 03:45:40 2013 -0400

    Give a warning when bufferevents are enabled.
    
    Ticket 9147.
---
 changes/bug9147 |    4 ++++
 src/or/main.c   |    7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/changes/bug9147 b/changes/bug9147
new file mode 100644
index 0000000..e6064ea
--- /dev/null
+++ b/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.
diff --git a/src/or/main.c b/src/or/main.c
index fd8b6cf..bd23141 100644
--- a/src/or/main.c
+++ b/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





More information about the tor-commits mailing list