apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Rooney" <roo...@electricjellyfish.net>
Subject Re: apr_socket_setaside?
Date Mon, 31 Jul 2006 13:30:20 GMT
On 7/30/06, Tyler MacDonald <tyler@yi.org> wrote:
> There is an apr_file_setaside() function that moves a filehandle from one
> pool to another. Is there an equivalent operation for sockets? If not... is
> there any technical reason why not, or is it just that nobody has gotten
> around to needing/implementing it yet?
>
> I'm asking because my module assigns sockets to different subsystems, not
> knowing which one until some initial negotiation has taken place. It'd be
> nice to be able to move the socket into the subsystem's pool after this
> negotiation... the other option being, I guess, to add an
> apr_pool_cleanup_register as the socket is passed along...

I don't recall seeing any function like that in the network code, but
I also don't see any reason why one couldn't be implemented.  Got a
patch?

-garrett

Mime
View raw message