[prev in list] [next in list] [prev in thread] [next in thread]
List: squid-dev
Subject: Re: client_side.c speedup when sending body
From: Adrian Chadd <adrian () creative ! net ! au>
Date: 2000-05-10 7:32:01
Message-ID: 20000510153200.C30014 () ewok ! creative ! net ! au
[Download RAW message or body]
On Wed, May 10, 2000, Henrik Nordstrom wrote:
> Duane Wessels wrote:
>
>
> > +static void
> > +clientWriteBodyComplete(int fd, char *buf, size_t size, int errflag,
> > + void *data)
> > +{
> > + memFree(buf, MEM_CLIENT_SOCK_BUF);
> > + clientWriteComplete(fd, buf, size, errflag, data);
> > }
>
>
> Shouldn't the buf argument in clientWriteComplete be NULL or something?
> I don't like passing around pointers to freed memory..
Hrm, you're probably right. I can't go through and look at the code
from where I am right now, but I'll check out this when I get home.
Adrian
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic