httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <>
Subject Re: cvs commit: apache-2.0/src/lib/apr/network_io/unix sockets.c
Date Mon, 13 Sep 1999 13:24:46 GMT
Ryan Bloom wrote:
> > > inet_ntoa() returns a pointer to a statically allocated buffer.
> > > Shouldn't we make a copy of it?
> >
> > Possibly, but you'll note the absence of a pool. Err, sorry, context.
> Ummm, every APR function has a context.  It is inside the socket
> structure.

Ah, OK. Well, I'd suggest we copy it into some pool-allocated memory in
that case. I changed it the way I did because it was not being handed
memory to fill in in practice!




"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi

View raw message