X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/f1e894f37fb99398f7447220925a915bd031491a..75e0e026a196fa852a855d5148f29be29ac2d92f:/src/src/ip.c diff --git a/src/src/ip.c b/src/src/ip.c index 63645f139..0e4eab650 100644 --- a/src/src/ip.c +++ b/src/src/ip.c @@ -1,10 +1,10 @@ -/* $Cambridge: exim/src/src/ip.c,v 1.3 2005/06/27 14:29:43 ph10 Exp $ */ +/* $Cambridge: exim/src/src/ip.c,v 1.5 2006/02/16 10:05:33 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2005 */ +/* Copyright (c) University of Cambridge 1995 - 2006 */ /* See the file NOTICE for conditions of use and distribution. */ /* Functions for doing things with sockets. With the advent of IPv6 this has @@ -224,17 +224,11 @@ alarm(0); /* There is a testing facility for simulating a connection timeout, as I can't think of any other way of doing this. It converts a connection refused -into a timeout. - -I had to add a second fudge to keep the tests working. Attempts to connect to -10.x.x.x are expected to timeout, but sometimes they now give "No route to -host". */ +into a timeout if the timeout is set to 999999. */ if (running_in_test_harness) { - if ((save_errno == ECONNREFUSED && timeout == 999999) || - (save_errno == EHOSTUNREACH && timeout > 0 && - Ustrncmp(address, "10.", 3) == 0)) + if (save_errno == ECONNREFUSED && timeout == 999999) { rc = -1; save_errno = EINTR;