aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-10-31 14:08:28 -0400
committerNick Mathewson <nickm@torproject.org>2013-10-31 14:08:28 -0400
commitdb2c2a69091724037e0e6dd0c58f0b18558ce437 (patch)
tree56aae78b3fcfc483ed2b48112cba8bf14ad97ed3
parent1b312f7b55bc5322f3029ad12715d9f348d44650 (diff)
parentc5532889a8e4b2788253c420af6568820483147c (diff)
downloadtor-db2c2a69091724037e0e6dd0c58f0b18558ce437.tar
tor-db2c2a69091724037e0e6dd0c58f0b18558ce437.tar.gz
Merge remote-tracking branch 'public/bug9731b' into maint-0.2.4
-rw-r--r--changes/bug97313
-rw-r--r--src/or/connection.c6
2 files changed, 9 insertions, 0 deletions
diff --git a/changes/bug9731 b/changes/bug9731
new file mode 100644
index 000000000..828496af3
--- /dev/null
+++ b/changes/bug9731
@@ -0,0 +1,3 @@
+ o Major bugfixes:
+ - Do not apply connection_consider_empty_read/write_buckets to
+ cpuworker connections.
diff --git a/src/or/connection.c b/src/or/connection.c
index 6e754a0f7..78cc31e89 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -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);