Subject: Re: Libssh2: Memory Allocation Failure

Re: Libssh2: Memory Allocation Failure

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 10 Sep 2010 08:31:32 +0200 (CEST)

On Thu, 9 Sep 2010, Paul Romero wrote:

> Thanks. In fact the test does free all connections in between transactions.

libssh2 is not easy on the heap. It allocates and frees a lot of memory chunks
and if your app does it as well, chances are that the memory pools are so
fragmented that there isn't any large enough blocks left when libssh2 wants
one.

I've been wanting to reduce the amount of mallocs but I've not yet gotten
around actually making that reality...

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-09-10