diff options
author | Rick Macklem <rmacklem@FreeBSD.org> | 2023-01-11 21:20:31 +0000 |
---|---|---|
committer | Rick Macklem <rmacklem@FreeBSD.org> | 2023-01-11 21:20:31 +0000 |
commit | e3c26ce5cb410e4e58e131dfea7054e0bf11e3ca (patch) | |
tree | 52bcdd58f42dd37ca13e3671cb0d4ca87ce9a2a1 /sys/kgssapi | |
parent | 4856aeaaed17726a1dfa5dd6c736e5b0851255b6 (diff) | |
download | src-e3c26ce5cb410e4e58e131dfea7054e0bf11e3ca.tar.gz src-e3c26ce5cb410e4e58e131dfea7054e0bf11e3ca.zip |
Diffstat (limited to 'sys/kgssapi')
-rw-r--r-- | sys/kgssapi/gss_impl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/kgssapi/gss_impl.c b/sys/kgssapi/gss_impl.c index 07e10d0999c4..9b1277298e32 100644 --- a/sys/kgssapi/gss_impl.c +++ b/sys/kgssapi/gss_impl.c @@ -119,7 +119,17 @@ sys_gssd_syscall(struct thread *td, struct gssd_syscall_args *uap) */ if (cl != NULL) { int retry_count = 5; + struct timeval timo; CLNT_CONTROL(cl, CLSET_RETRIES, &retry_count); + + /* + * Set the timeout for an upcall to 5 minutes. The + * default of 25 seconds is not long enough for some + * gss_XXX() calls done by the gssd(8) daemon. + */ + timo.tv_sec = 5 * 60; + timo.tv_usec = 0; + CLNT_CONTROL(cl, CLSET_TIMEOUT, &timo); } } else cl = NULL; |