Subject: Re: Libssh2: Memory Allocation Failure

Re: Libssh2: Memory Allocation Failure

From: Daniel Stenberg <>
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

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

Received on 2010-09-10