From: František Dvořák Date: Wed, 21 Jun 2006 11:13:17 +0000 (+0000) Subject: Fix the client timeout incresing - increase it just temporary. X-Git-Tag: gridsite-core_R_1_3_2~104 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=2565f2964b06a1f3fcdfcaf31f2240f0f92581ee;p=jra1mw.git Fix the client timeout incresing - increase it just temporary. --- 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);