one redundant? Lock() commented out
authorMiloš Mulač <mulac@civ.zcu.cz>
Mon, 16 Oct 2006 14:36:19 +0000 (14:36 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Mon, 16 Oct 2006 14:36:19 +0000 (14:36 +0000)
org.glite.lb.client/src/connection.c

index 90b1459..f192621 100644 (file)
@@ -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: