aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-02-06 08:00:49 +0000
committerRoger Dingledine <arma@torproject.org>2003-02-06 08:00:49 +0000
commitceafe12ed67528ce4dd656f43bccb7c7a9f7317f (patch)
tree8f95a57e7fc71d62c919057fedb25dad33fcc424 /src/or/dns.c
parentc35373a2cfae66d41e4120469096acde10cea050 (diff)
downloadtor-ceafe12ed67528ce4dd656f43bccb7c7a9f7317f.tar
tor-ceafe12ed67528ce4dd656f43bccb7c7a9f7317f.tar.gz
make reusing circuits work (and be the default)
performance is better, but not by much. not sure why yet. svn:r153
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index d73015957..1bfaaee26 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -55,6 +55,9 @@ int connection_dns_process_inbuf(connection_t *conn) {
assert(conn->inbuf);
+ if(conn->inbuf_datalen <= 0)
+ return 0;
+
/* peek into the inbuf, so we can check if it's all here */
length = *conn->inbuf; /* warning: abstraction violation :( */
assert(length < 240);
@@ -231,7 +234,7 @@ int dns_read_block(int fd, char *string, unsigned char *len) {
}
string[*len] = 0; /* null terminate it, just in case */
- log(LOG_INFO,"dns_read_block(): Read '%s', len %u.",string,*len); // XXX make silent
+// log(LOG_INFO,"dns_read_block(): Read '%s', len %u.",string,*len);
return 0;
}
@@ -267,7 +270,7 @@ static int dns_read_tor_question(int index) {
&slave_data[index].question_len) < 0)
return -1;
- log(LOG_INFO,"dns_read_tor_question(): Read question '%s'",slave_data[index].question);
+// log(LOG_INFO,"dns_read_tor_question(): Read question '%s'",slave_data[index].question);
return 0;
}
@@ -358,7 +361,7 @@ int dns_tor_to_master(char *address) {
return -1;
}
- log(LOG_DEBUG,"dns_tor_to_master(): submitted '%s'", address);
+// log(LOG_DEBUG,"dns_tor_to_master(): submitted '%s'", address);
return 0;
}