summaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index e12f522c65..75f17c6e64 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -170,14 +170,8 @@ static int assign_to_dnsworker(connection_t *exitconn) {
num_dnsworkers_busy++;
len = strlen(dnsconn->address);
- /* FFFF we should have it retry if the first worker bombs out */
- if(connection_write_to_buf(&len, 1, dnsconn) < 0 ||
- connection_write_to_buf(dnsconn->address, len, dnsconn) < 0) {
- log_fn(LOG_WARNING,"Write failed. Closing worker and failing resolve.");
- dnsconn->marked_for_close = 1;
- dns_cancel_pending_resolve(exitconn->address, NULL);
- return -1;
- }
+ connection_write_to_buf(&len, 1, dnsconn);
+ connection_write_to_buf(dnsconn->address, len, dnsconn);
// log_fn(LOG_DEBUG,"submitted '%s'", exitconn->address);
return 0;