From 669f0260d06a568b8a243744b38b0b249efc46a0 Mon Sep 17 00:00:00 2001 From: jette <jette@schedmd.com> Date: Sun, 25 Nov 2012 08:38:30 -0800 Subject: [PATCH] Add sleep to munge call on socket timeout This could happen in srun too and would typically indicate that the munged is too busy to respond --- src/plugins/auth/munge/auth_munge.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/auth/munge/auth_munge.c b/src/plugins/auth/munge/auth_munge.c index 0f8ab50c68b..9c6ef408ce6 100644 --- a/src/plugins/auth/munge/auth_munge.c +++ b/src/plugins/auth/munge/auth_munge.c @@ -524,9 +524,7 @@ _decode_cred(slurm_auth_credential_t *c, char *socket) if ((e == EMUNGE_SOCKET) && retry--) { error ("Munge decode failed: %s (retrying ...)", munge_ctx_strerror(ctx)); -#ifdef MULTIPLE_SLURMD - sleep(1); -#endif + usleep(10000); /* Likely munged too busy */ goto again; } #ifdef MULTIPLE_SLURMD -- GitLab