On  Thu, 2015-08-20 at 6:30 AM , Nick wrote:

>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.

 


If do this, every connect need create a subpool, and clear mpool when close the 
connect.

Reply via email to