]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Don't apply read/write buckets to cpuworker connections
authorNick Mathewson <nickm@torproject.org>
Fri, 13 Sep 2013 17:37:53 +0000 (13:37 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 13 Sep 2013 17:39:18 +0000 (13:39 -0400)
Fixes bug 9731

changes/bug9731 [new file with mode: 0644]
src/or/connection.c

diff --git a/changes/bug9731 b/changes/bug9731
new file mode 100644 (file)
index 0000000..828496a
--- /dev/null
@@ -0,0 +1,3 @@
+  o Major bugfixes:
+    - Do not apply connection_consider_empty_read/write_buckets to
+      cpuworker connections.
index 6e754a0f7a3223dfbf02965371eaef9425d6f0fb..78cc31e894e7e5dc69313b43c29fbc3f08fa7643 100644 (file)
@@ -2483,6 +2483,9 @@ connection_consider_empty_read_buckets(connection_t *conn)
   } else
     return; /* all good, no need to stop it */
 
+  if (conn->type == CONN_TYPE_CPUWORKER)
+    return; /* Always okay. */
+
   LOG_FN_CONN(conn, (LOG_DEBUG, LD_NET, "%s", reason));
   conn->read_blocked_on_bw = 1;
   connection_stop_reading(conn);
@@ -2507,6 +2510,9 @@ connection_consider_empty_write_buckets(connection_t *conn)
   } else
     return; /* all good, no need to stop it */
 
+  if (conn->type == CONN_TYPE_CPUWORKER)
+    return; /* Always okay. */
+
   LOG_FN_CONN(conn, (LOG_DEBUG, LD_NET, "%s", reason));
   conn->write_blocked_on_bw = 1;
   connection_stop_writing(conn);