* kcmd.c: don't retry (and waste 7 seconds) on ECONNREFUSED, just
authorBarry Jaspan <bjaspan@mit.edu>
Mon, 21 Oct 1996 17:46:58 +0000 (17:46 +0000)
committerBarry Jaspan <bjaspan@mit.edu>
Mon, 21 Oct 1996 17:46:58 +0000 (17:46 +0000)
  fail immediately [krb5-appl/120]

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9217 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/kcmd.c

index 85ea415a005f067b8634db4b462559a0562cc982..4b69556450ff600e3f533f100b8aa9dd090a34e0 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 21 13:44:53 1996  Barry Jaspan  <bjaspan@mit.edu>
+
+       * kcmd.c: don't retry (and waste 7 seconds) on ECONNREFUSED, just
+       fail immediately [krb5-appl/120]
+
 Fri Oct 18 17:26:51 1996  Barry Jaspan  <bjaspan@mit.edu>
 
        * krsh.c, krlogin.c: don't print our own error message if kcmd
index c446541b760bcdfb245c9ea7b8bc80e1ca3b92c3..877020c15b2c08e4491748cc64617f9e28926f77 100644 (file)
@@ -189,14 +189,7 @@ kcmd(sock, ahost, rport, locuser, remuser, cmd, fd2p, service, realm,
            lport--;
            continue;
        }
-       /*
-        * don't wait very long for Kerberos kcmd.
-        */
-       if (errno == ECONNREFUSED && timo <= 4) {
-           sleep(timo);
-           timo *= 2;
-           continue;
-       }
+
 #if !(defined(tek) || defined(ultrix) || defined(sun) || defined(SYSV))
        if (hp->h_addr_list[1] != NULL) {
            int oerrno = errno;