Re: [Openvpn-devel] [PATCH] Prevent memory drain for long lasting floating sessions

2014-12-08 Thread Steffan Karger
ACK. Less memory usage (even without float), and got rid of a dynamic allocation, nice! Code looks good and passes my local tests. -Steffan On 08-12-14 17:48, Lev Stipakov wrote: > For every float event we generate prefix, which allocates 256 + 64 > bytes. That memory is reclaimed when client dis

[Openvpn-devel] [PATCH] Prevent memory drain for long lasting floating sessions

2014-12-08 Thread Lev Stipakov
For every float event we generate prefix, which allocates 256 + 64 bytes. That memory is reclaimed when client disconnects, so long lasting and constantly floating sessions drain memory. As a fix use preallocated buffer inside multi_instance for storing multi_prefix. Signed-off-by: Lev Stipakov