Changes between Initial Version and Version 1 of Ticket #560


Ignore:
Timestamp:
Jul 12, 2008 9:51:42 AM (16 years ago)
Author:
bennylp
Comment:

Done in r2124:

  • use one pool for each entry
  • replace fixed memory pool with normal pool
  • reduce default cache size from 1000 down to 512 bytes

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #560

    • Property Status changed from new to closed
    • Property Resolution changed from to fixed
  • Ticket #560 – Description

    initial v1  
    33With the new approach, each DNS answer cache entry will have it's own pool, and when the answer/entry expires, the pool will be destroyed, thus releasing the memory back to the OS. 
    44 
     5Also change the pool type used to store the entry. Previously entry uses a fixed size buffer to allocate the memory from, using fixed buffer pool ({{{pool_buf.h}}}. Because of this, entry is created with buffer that must be large enough to parse DNS answer, and if the answer is larger than the buffer size, parsing will fail. 
     6 
     7This limitation will be gone when we change the pool type to use normal pool instead. 
     8