/*
- * $Id: forward.cc,v 1.15 1998/06/29 21:03:01 wessels Exp $
+ * $Id: forward.cc,v 1.16 1998/07/13 21:37:15 wessels Exp $
*
* DEBUG: section 17 Request Forwarding
* AUTHOR: Duane Wessels
while ((s = n)) {
n = s->next;
xfree(s->host);
- xfree(s);
+ memFree(MEM_FWD_SERVER, s);
}
fwdState->servers = NULL;
requestUnlink(fwdState->request);
{
FwdState *fwdState = data;
FwdServer *s;
- s = xcalloc(1, sizeof(*s));
+ s = memAllocate(MEM_FWD_SERVER);
if (NULL != p) {
s->host = xstrdup(p->host);
s->port = p->http_port;
default:
break;
}
- fwdState = xcalloc(1, sizeof(FwdState));
- cbdataAdd(fwdState, MEM_NONE);
+ fwdState = memAllocate(MEM_FWD_STATE);
+ cbdataAdd(fwdState, MEM_FWD_STATE);
fwdState->entry = entry;
fwdState->client_fd = fd;
fwdState->server_fd = -1;
/*
- * $Id: mem.cc,v 1.26 1998/07/07 02:54:14 wessels Exp $
+ * $Id: mem.cc,v 1.27 1998/07/13 21:37:16 wessels Exp $
*
* DEBUG: section 13 High Level Memory Pool Management
* AUTHOR: Harvest Derived
sizeof(fqdncache_entry), 0);
memDataInit(MEM_FQDNCACHE_PENDING, "fqdn_pending",
sizeof(fqdn_pending), 0);
+ memDataInit(MEM_FWD_STATE, "FwdState", sizeof(FwdState), 0);
+ memDataInit(MEM_FWD_SERVER, "FwdServer", sizeof(FwdServer), 0);
memDataInit(MEM_HASH_LINK, "hash_link", sizeof(hash_link), 0);
memDataInit(MEM_HASH_TABLE, "hash_table", sizeof(hash_table), 0);
memDataInit(MEM_HIERARCHYLOGENTRY, "HierarchyLogEntry",