Welcome! Log In Create A New Profile


Free memory from another Pool location

Posted by jtme12 
Free memory from another Pool location
August 23, 2019 12:41AM
Hello guy, im just beginner. I'm building a moduel that inserted into NGX_HTTP_ACCESS_PHASE. I have some data that i want to save and to use for along time, then i store them in a variable in location config(I knew that the best way is use shared memory to store data permanently, but i just wana try this first). Then my permanent data were stored in a pool, the pool about configuration, i can allocate memory in this pool from NGX_HTTP_ACCESS_PHASE but in this phase i canst free the data that i have just allocated. Is that true? or is something wrongs in my program ?
I'm not a english man so forgive me about my mistake, Thank you!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 281
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready