Re: client_side.c speedup when sending body

From: Adrian Chadd <adrian@dont-contact.us>
Date: Wed, 10 May 2000 15:32:01 +0800

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
Received on Wed May 10 2000 - 01:32:13 MDT

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