Re: mempools conversions, more ..

From: Robert Collins <robert.collins@dont-contact.us>
Date: Mon, 9 Oct 2000 21:45:20 +1100

The NTLM version of squid is based on a reworked request-path in squid (done
by Henrik) which eliminates pump.c - over to you Henrik :-]

Rob
----- Original Message -----
From: "Andres Kroonmaa" <andre@online.ee>
To: <squid-dev@squid-cache.org>
Sent: Monday, October 09, 2000 9:37 PM
Subject: Re: mempools conversions, more ..

in mem.c we have this:

/* ick */

void
memFree2K(void *p)
{
    memFree(p, MEM_2K_BUF);
}

void
memFree4K(void *p)
{
    memFree(p, MEM_4K_BUF);
}

void
memFree8K(void *p)
{
    memFree(p, MEM_8K_BUF);
}

 Why are these really needed? seems that only 4K are used in
 pump.c and ftp.c (ftpState)
 Should we get rid of these and convert to using cbdata instead?

 eg: in pump.c:
+ cbdataAdd(p, memFree, MEM_4K_BUF);
- comm_write(p->s_fd, buf, size, pumpServerCopyComplete, p, memFree4K);
+ comm_write(p->s_fd, buf, size, pumpServerCopyComplete, p, cbdataFree);

------------------------------------
 Andres Kroonmaa <andre@online.ee>
 Delfi Online
 Tel: 6501 731, Fax: 6501 708
 Pärnu mnt. 158, Tallinn,
 11317 Estonia
Received on Mon Oct 09 2000 - 04:42:03 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:42 MST