Increase the default RPC timeout for kadmin from 25 seconds to 120
authorGreg Hudson <ghudson@mit.edu>
Thu, 2 Oct 2008 17:23:54 +0000 (17:23 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 2 Oct 2008 17:23:54 +0000 (17:23 +0000)
seconds.  Code changes from a patch submitted by umich.

ticket: 6120

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

src/lib/kadm5/clnt/client_rpc.c
src/lib/rpc/clnt_generic.c

index 2823da9a18adc700f3199f333817c10ae4479367..2edafcbe5727596fdf4f68998f77f739ee3b633f 100644 (file)
@@ -7,7 +7,7 @@
 #endif
 
 /* Default timeout can be changed using clnt_control() */
-static struct timeval TIMEOUT = { 25, 0 };
+static struct timeval TIMEOUT = { 120, 0 };
 
 generic_ret *
 create_principal_2(cprinc_arg *argp, CLIENT *clnt)
index 07490eeead48d9aff47615aaa52de1e8e2812e76..696e5a2e8b18419031d2dfde36f96c281e190428 100644 (file)
@@ -94,7 +94,7 @@ clnt_create(
                if (client == NULL) {
                        return (NULL);
                }
-               tv.tv_sec = 25;
+               tv.tv_sec = 120;
                clnt_control(client, CLSET_TIMEOUT, &tv);
                break;
        case IPPROTO_TCP:
@@ -102,7 +102,7 @@ clnt_create(
                if (client == NULL) {
                        return (NULL);
                }
-               tv.tv_sec = 25;
+               tv.tv_sec = 120;
                tv.tv_usec = 0;
                clnt_control(client, CLSET_TIMEOUT, &tv);
                break;