From: Miloš Mulač Date: Wed, 4 Feb 2009 08:28:15 +0000 (+0000) Subject: reuse socket in notifBind() X-Git-Tag: glite-lb-client-java_R_1_0_0_5~6 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=5dfe428c494121b6409a2dd30d0a160a9b7ac4cb;p=jra1mw.git reuse socket in notifBind() --- diff --git a/org.glite.lb.client/src/notification.c b/org.glite.lb.client/src/notification.c index 392d5f9..5faa503 100644 --- a/org.glite.lb.client/src/notification.c +++ b/org.glite.lb.client/src/notification.c @@ -289,6 +289,7 @@ int edg_wll_NotifBind( edg_wll_ResetError(ctx); +/* XXX - ??? this should not be there - if fd = -1 then semantic is 'create new socket or _reuse_ old' // if a local listening socket active, close it if (ctx->notifSock >= 0) { if (close(ctx->notifSock)) @@ -296,6 +297,7 @@ int edg_wll_NotifBind( else ctx->notifSock = -1; } +*/ if (set_server_name_and_port(ctx)) goto err; @@ -662,7 +664,7 @@ int edg_wll_NotifReceive( start_time = check_time; if (edg_wll_accept(ctx,fd)) goto err; - + /* check time */ gettimeofday(&check_time,0); if (decrement_timeout(&ctx->p_tmp_timeout, start_time, check_time)) {