]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Clean up gssrpc timeout code 262/head
authorGreg Hudson <ghudson@mit.edu>
Sat, 14 Mar 2015 18:29:21 +0000 (14:29 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 17 Mar 2015 18:47:17 +0000 (14:47 -0400)
Revert b8b7bd63231094a3583847853bf60cb002781161 (for #6120) now that
we are setting the kadmin client timeout the appropriate way.

In clnt_create(), do not set a timeout after creating the handle;
doing so defeats the purpose of keeping track of whether the caller
has set a handle timeout.

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

index e11346d82ac2142bf4fdedec216e569bb5bd5708..0d2f9530adcd2d1b8c3ebdaef5b43139b0da6e16 100644 (file)
@@ -10,7 +10,7 @@
 #endif
 
 /* Default timeout can be changed using clnt_control() */
-static struct timeval TIMEOUT = { 120, 0 };
+static struct timeval TIMEOUT = { 25, 0 };
 
 generic_ret *
 create_principal_2(cprinc_arg *argp, CLIENT *clnt)
index 595c5f2ac395e385153c78cafa328b55dbfad408..79831e1db9a682e815091869023220607d9641c3 100644 (file)
@@ -94,17 +94,12 @@ clnt_create(
                if (client == NULL) {
                        return (NULL);
                }
-               tv.tv_sec = 120;
-               clnt_control(client, CLSET_TIMEOUT, &tv);
                break;
        case IPPROTO_TCP:
                client = clnttcp_create(&sockin, prog, vers, &sock, 0, 0);
                if (client == NULL) {
                        return (NULL);
                }
-               tv.tv_sec = 120;
-               tv.tv_usec = 0;
-               clnt_control(client, CLSET_TIMEOUT, &tv);
                break;
        default:
                rpc_createerr.cf_stat = RPC_SYSTEMERROR;