aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2007-06-10 08:19:54 +0000
committerMatthias Andree <matthias.andree@gmx.de>2007-06-10 08:19:54 +0000
commitbcf29b2f175bce28ce52f07380305240c11f9339 (patch)
treec4708b0c68ba0e4a18c8f5362596ef35c2c7bec9
parent47408141ecc700c85e9957ec6ebd09ebd43039f7 (diff)
downloadfetchmail-bcf29b2f175bce28ce52f07380305240c11f9339.tar.gz
fetchmail-bcf29b2f175bce28ce52f07380305240c11f9339.tar.bz2
fetchmail-bcf29b2f175bce28ce52f07380305240c11f9339.zip
Remove dead USE_TCPIP_FOR_DNS code.
svn path=/branches/BRANCH_6-3/; revision=5103
-rw-r--r--fetchmail.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/fetchmail.c b/fetchmail.c
index d6b9420b..7abdb1e0 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -667,20 +667,6 @@ int main(int argc, char **argv)
report(stderr, GT_("attempt to re-exec fetchmail failed\n"));
}
-#if defined(HAVE_RES_SEARCH) && defined(USE_TCPIP_FOR_DNS)
- /*
- * This was an efficiency hack that backfired. The theory
- * was that using TCP/IP for DNS queries would get us better
- * reliability and shave off some per-UDP-packet costs.
- * Unfortunately it interacted badly with diald, which effectively
- * filters out DNS queries over TCP/IP for reasons having to do
- * with some obscure Linux kernel problem involving bootstrapping of
- * dynamically-addressed links. I don't understand this mess
- * and don't want to, so it's "See ya!" to this hack.
- */
- sethostent(TRUE); /* use TCP/IP for mailserver queries */
-#endif /* HAVE_RES_SEARCH */
-
#ifdef HAVE_RES_SEARCH
/* Boldly assume that we also have res_init() if we have
* res_search(), and call res_init() to re-read the resolv.conf
@@ -805,10 +791,6 @@ int main(int argc, char **argv)
}
}
-#if defined(HAVE_RES_SEARCH) && defined(USE_TCPIP_FOR_DNS)
- endhostent(); /* release TCP/IP connection to nameserver */
-#endif /* HAVE_RES_SEARCH */
-
/* close connections cleanly */
terminate_poll(0);