Lines Matching defs:sessionPool
84 static Connection **sessionPool = NULL;
533 if (sessionPool == NULL) {
535 sessionPool = calloc(sessionPoolSize,
537 if (!sessionPool) {
542 (void) fprintf(stderr, "Initialized sessionPool\n");
545 for (i = 0; (i < sessionPoolSize) && (sessionPool[i] != NULL); ++i)
548 /* run out of array, need to increase sessionPool */
550 cl = (Connection **) realloc(sessionPool,
559 sessionPool = cl;
566 sessionPool[i] = con;
619 if (sessionPool == NULL)
623 if (sessionPool[i] == NULL)
625 cp = sessionPool[i];
1059 cp = sessionPool[id];
1086 sessionPool[id] = NULL;
2019 if (sessionPool != NULL) {
2022 free(sessionPool);
2023 sessionPool = NULL;