Lines Matching refs:sessionPool
83 static Connection **sessionPool = NULL;
545 if (sessionPool == NULL) {
547 sessionPool = calloc(sessionPoolSize,
549 if (!sessionPool) {
554 (void) fprintf(stderr, "Initialized sessionPool\n");
557 for (i = 0; (i < sessionPoolSize) && (sessionPool[i] != NULL); ++i)
560 /* run out of array, need to increase sessionPool */
562 cl = (Connection **) realloc(sessionPool,
571 sessionPool = cl;
578 sessionPool[i] = con;
631 if (sessionPool == NULL)
635 if (sessionPool[i] == NULL)
637 cp = sessionPool[i];
1213 cp = sessionPool[id];
1240 sessionPool[id] = NULL;
2173 if (sessionPool != NULL) {
2176 free(sessionPool);
2177 sessionPool = NULL;