Subject: Re: Libssh2: Memory Allocation Failure

Re: Libssh2: Memory Allocation Failure

From: Paul Romero <paulr_at_rcom-software.com>
Date: Thu, 09 Sep 2010 21:17:04 -0700

Hi Dan:

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

Best Regards,

Paul R.

Dan Fandrich wrote:

> On Thu, Sep 09, 2010 at 07:31:39PM -0700, Paul Romero wrote:
> > In your opinion, does using libssh_exit() at the end of a transaction
> > make a difference ?
>
> libssh2_exit is practically a no-op in the current implementation,
> so calling it won't make any difference to memory usage. But tearing
> down and closing all connections between operations would give the
> memory allocator a chance to combine more memory blocks and free up
> more contiguous space.
>
> >>> Dan
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

--
Paul Romero
RCOM Communications Software
Phone/Fax: (510)339-2628
E-Mail: paulr_at_rcom-software.com
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-09-10