}
#ifdef EDG_WLL_CONNPOOL_DEBUG
- printf("Connection with fd %d accepted. %d in the pool\n",>srvName,ctx->srvPort,ctx->connNotif->connToUse);
+ printf("Connection with fd %d accepted. %d in the pool\n",ctx->srvName,ctx->srvPort,ctx->connNotif->connToUse);
#endif
out->allowAnonymous = 1;
out->notifSock = -1;
- memset(&null, 0, sizeof null);
- for (i=0; i<EDG_WLL_PARAM__LAST; i++) {
- if ((ret = edg_wll_SetParam(out,i,null)) != 0) {
- edg_wll_FreeParams(out);
- free(out);
- return ret;
- }
- }
-
out->p_tmp_timeout.tv_sec = out->p_log_timeout.tv_sec;
out->p_tmp_timeout.tv_usec = out->p_log_timeout.tv_usec;
out->connProxy->conn.sock = -1;
// out->connToUse = -1;
+ memset(&null, 0, sizeof null);
+ for (i=0; i<EDG_WLL_PARAM__LAST; i++) {
+ if ((ret = edg_wll_SetParam(out,i,null)) != 0) {
+ edg_wll_FreeContext(out);
+ return ret;
+ }
+ }
+
*ctx = out;
#ifdef CTXTRACE
#include "glite/jobid/cjobid.h"
#include "context-int.h"
+#include "connpool.h"
// XXX:
#include "log_proto.h" // for default log host and port
#include "timeouts.h" // for timeouts
char *s = mygetenv(param);
if (!val && s) val = atoi(s);
+
+ edg_wll_poolLock();
connectionsHandle.poolSize = val ? val : GLITE_LB_COMMON_CONNPOOL_SIZE;
+ edg_wll_poolUnlock();
}
break;
case EDG_WLL_PARAM_SOURCE: