Keywords:
Ensure that pconns start with no recorded fd's. Technically, this isn't needed, as cbdata is meant to return cleared memory, but it's good practice to explicitly initialise required values. (And, as we get more C++ syntax, the compiler will optimise that as part of operator new).
/*
- * $Id: pconn.cc,v 1.37 2003/06/19 13:47:25 hno Exp $
+ * $Id: pconn.cc,v 1.38 2003/06/22 07:47:43 robertc Exp $
*
* DEBUG: section 48 Persistent Connections
* AUTHOR: Duane Wessels
p = cbdataAlloc(pconn);
p->hash.key = xstrdup(key);
p->nfds_alloc = PCONN_FDS_SZ;
+ p->nfds = 0;
p->fds = (int *)memPoolAlloc(pconn_fds_pool);
debug(48, 3) ("pconnNew: adding %s\n", hashKeyStr(&p->hash));
hash_join(table, &p->hash);