apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <...@apache.org>
Subject Re: How to release apr_socket_accept memory pool
Date Wed, 19 Aug 2015 22:30:49 GMT
On Wed, 2015-08-19 at 19:02 +0800, GHui wrote:

> I code a server with apr_socket_accept and apr_pollset_poll. But
> apr_socket_accept and apr_pollset_add take up the memory pool. I
> cann't release or clear memory pool. So it take up more and more
> memory. 

Can you not solve that problem by using a subpool for those
functions?  That way you can give the subpool the lifetime
you need it to have, regardless of other resources that
prevent you clearing the parent pool.

-- 
Nick Kew



Mime
View raw message