From 5dfe428c494121b6409a2dd30d0a160a9b7ac4cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Wed, 4 Feb 2009 08:28:15 +0000 Subject: [PATCH] reuse socket in notifBind() --- org.glite.lb.client/src/notification.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) { -- 1.8.2.3