Subject: RE: Disabling compression by API?

RE: Disabling compression by API?

From: Neil Gierman <>
Date: Fri, 8 Oct 2010 10:31:06 -0500

> Hi friends.
> It came to my attention that we don't enable compression properly. I
> forced my
> local sshd to do compression but my test app still didn't do
> compression until
> I changed the order of the algorithms in src/comp.c. (commit and push
> coming
> up in a second)
> Of course this makes me think many users of libssh2 might not use
> compression
> as well even though they may benefit from it. It also made me think
> about
> having a way in the API to make it preferred or not. After all,
> compression
> does take a little time and CPU and for the cases where no compression
> is to
> expect an application might want to not do compression.
> Any thoughts on this?
> --
> /

For my specific use case, I am transferring binary files (already bzipped)
using SFTP to an embedded system.
Not only would I not benefit from compressing my files again, but I am not
sure that the embedded CPU could handle it.
I would prefer compression as optional and maybe even disabled by default
and an API call to specifically enable it.


Received on 2010-10-08