]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Decrease the amount of rend circ relaunches for hidden services.
authorGeorge Kadianakis <desnacked@riseup.net>
Thu, 2 Apr 2015 14:58:33 +0000 (15:58 +0100)
committerNick Mathewson <nickm@torproject.org>
Fri, 3 Apr 2015 13:47:40 +0000 (09:47 -0400)
changes/bug11447 [new file with mode: 0644]
src/or/rendservice.c

diff --git a/changes/bug11447 b/changes/bug11447
new file mode 100644 (file)
index 0000000..8cd4f5b
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor features (DoS-resistance):
+    - Decrease the amount of reattempts that a hidden service is
+      willing to perform when its rendezvous circuits fail. This
+      reduces the computational cost for hidden service under heavy
+      load. Resolves ticket #11447.
\ No newline at end of file
index 6c934c8c12b4543b8eeec091dfa34ac49fad0f17..4ae06dfb9087664e298cd3a9971f968a44e6cb47 100644 (file)
@@ -90,7 +90,7 @@ typedef struct rend_service_port_config_t {
 #define MAX_INTRO_CIRCS_PER_PERIOD 10
 /** How many times will a hidden service operator attempt to connect to
  * a requested rendezvous point before giving up? */
-#define MAX_REND_FAILURES 8
+#define MAX_REND_FAILURES 1
 /** How many seconds should we spend trying to connect to a requested
  * rendezvous point before giving up? */
 #define MAX_REND_TIMEOUT 30