From: Miloš Mulač Date: Mon, 16 Oct 2006 14:36:19 +0000 (+0000) Subject: one redundant? Lock() commented out X-Git-Tag: merge_connpool_src~4 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=c42c7baa9096bb5e57ab2339d753a7c639fbf4db;p=jra1mw.git one redundant? Lock() commented out --- diff --git a/org.glite.lb.client/src/connection.c b/org.glite.lb.client/src/connection.c index 90b1459..f192621 100644 --- a/org.glite.lb.client/src/connection.c +++ b/org.glite.lb.client/src/connection.c @@ -395,7 +395,10 @@ int edg_wll_http_send_recv( if (edg_wll_open(ctx,&connToUse)) return edg_wll_Error(ctx,NULL,NULL); - edg_wll_connectionTryLock(ctx, connToUse); + // XXX: why?? + // it is locked in edg_wll_open and even more I believe that it cannot be locked + // from unlocked pool !! + // edg_wll_connectionTryLock(ctx, connToUse); switch (edg_wll_http_send(ctx,request,req_head,req_body,&ctx->connections->connPool[connToUse])) { case ENOTCONN: @@ -426,6 +429,7 @@ int edg_wll_http_send_recv( // sleep(3); //Just for testing edg_wll_connectionUnlock(ctx, connToUse); + return 0; err: