From 2565f2964b06a1f3fcdfcaf31f2240f0f92581ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Wed, 21 Jun 2006 11:13:17 +0000 Subject: [PATCH] Fix the client timeout incresing - increase it just temporary. --- org.glite.lb.client/src/producer.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/org.glite.lb.client/src/producer.c b/org.glite.lb.client/src/producer.c index 4ebb6d2..b7dec9c 100644 --- a/org.glite.lb.client/src/producer.c +++ b/org.glite.lb.client/src/producer.c @@ -741,10 +741,12 @@ static int edg_wll_RegisterJobMaster( edg_wll_GssStatus gss_stat; gss_cred_id_t cred = GSS_C_NO_CREDENTIAL; OM_uint32 min_stat; + struct timeval sync_to; seq = type_s = intseed = parent_s = user_dn = NULL; edg_wll_ResetError(context); + memcpy(&sync_to, &context->p_sync_timeout, sizeof sync_to); intseed = seed ? strdup(seed) : str2md5base64(seq = edg_wll_GetSequenceCode(context)); @@ -809,8 +811,9 @@ static int edg_wll_RegisterJobMaster( } edg_wll_registerjobmaster_end: - if (cred != GSS_C_NO_CREDENTIAL) - gss_release_cred(&min_stat, &cred); + memcpy(&context->p_sync_timeout, &sync_to, sizeof sync_to); + if (cred != GSS_C_NO_CREDENTIAL) + gss_release_cred(&min_stat, &cred); if (seq) free(seq); if (type_s) free(type_s); if (intseed) free(intseed); -- 1.8.2.3