summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-03-05 02:40:58 +0000
committerNick Mathewson <nickm@torproject.org>2007-03-05 02:40:58 +0000
commit52713788b4dfafd7c07733f037e64bf2fec14ea1 (patch)
treece508592312f80d17c759974d680e319c19ee60b /src/or/connection.c
parent92f62b36846e3c82f5521fa17f7a4f5afde827af (diff)
downloadtor-52713788b4dfafd7c07733f037e64bf2fec14ea1.tar.gz
tor-52713788b4dfafd7c07733f037e64bf2fec14ea1.zip
r12080@catbus: nickm | 2007-03-04 21:40:55 -0500
Remove dnsworkers and related code. there goes another 550 lines of code. svn:r9736
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index c04d3bc374..c28fedecfc 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -51,7 +51,6 @@ conn_type_to_string(int type)
case CONN_TYPE_AP: return "Socks";
case CONN_TYPE_DIR_LISTENER: return "Directory listener";
case CONN_TYPE_DIR: return "Directory";
- case CONN_TYPE_DNSWORKER: return "DNS worker";
case CONN_TYPE_CPUWORKER: return "CPU worker";
case CONN_TYPE_CONTROL_LISTENER: return "Control listener";
case CONN_TYPE_CONTROL: return "Control";
@@ -118,12 +117,6 @@ conn_state_to_string(int type, int state)
case DIR_CONN_STATE_SERVER_WRITING: return "writing";
}
break;
- case CONN_TYPE_DNSWORKER:
- switch (state) {
- case DNSWORKER_STATE_IDLE: return "idle";
- case DNSWORKER_STATE_BUSY: return "busy";
- }
- break;
case CONN_TYPE_CPUWORKER:
switch (state) {
case CPUWORKER_STATE_IDLE: return "idle";
@@ -496,11 +489,6 @@ connection_about_to_close_connection(connection_t *conn)
if (edge_conn->bridge_for_conn)
connection_dirserv_unlink_from_bridge(edge_conn->bridge_for_conn);
break;
- case CONN_TYPE_DNSWORKER:
- if (conn->state == DNSWORKER_STATE_BUSY) {
- dns_cancel_pending_resolve(conn->address);
- }
- break;
}
}
@@ -2242,8 +2230,6 @@ connection_process_inbuf(connection_t *conn, int package_partial)
package_partial);
case CONN_TYPE_DIR:
return connection_dir_process_inbuf(TO_DIR_CONN(conn));
- case CONN_TYPE_DNSWORKER:
- return connection_dns_process_inbuf(conn);
case CONN_TYPE_CPUWORKER:
return connection_cpu_process_inbuf(conn);
case CONN_TYPE_CONTROL:
@@ -2289,8 +2275,6 @@ connection_finished_flushing(connection_t *conn)
return connection_edge_finished_flushing(TO_EDGE_CONN(conn));
case CONN_TYPE_DIR:
return connection_dir_finished_flushing(TO_DIR_CONN(conn));
- case CONN_TYPE_DNSWORKER:
- return connection_dns_finished_flushing(conn);
case CONN_TYPE_CPUWORKER:
return connection_cpu_finished_flushing(conn);
case CONN_TYPE_CONTROL:
@@ -2339,8 +2323,6 @@ connection_reached_eof(connection_t *conn)
return connection_edge_reached_eof(TO_EDGE_CONN(conn));
case CONN_TYPE_DIR:
return connection_dir_reached_eof(TO_DIR_CONN(conn));
- case CONN_TYPE_DNSWORKER:
- return connection_dns_reached_eof(conn);
case CONN_TYPE_CPUWORKER:
return connection_cpu_reached_eof(conn);
case CONN_TYPE_CONTROL:
@@ -2513,10 +2495,6 @@ assert_connection_ok(connection_t *conn, time_t now)
tor_assert(conn->purpose >= _DIR_PURPOSE_MIN);
tor_assert(conn->purpose <= _DIR_PURPOSE_MAX);
break;
- case CONN_TYPE_DNSWORKER:
- tor_assert(conn->state >= _DNSWORKER_STATE_MIN);
- tor_assert(conn->state <= _DNSWORKER_STATE_MAX);
- break;
case CONN_TYPE_CPUWORKER:
tor_assert(conn->state >= _CPUWORKER_STATE_MIN);
tor_assert(conn->state <= _CPUWORKER_STATE_MAX);