[2/3] testbot/TestAgent: Enable libssh2 compression.
Francois Gouget
fgouget at codeweavers.com
Wed Mar 13 09:33:51 CDT 2013
---
That could help speed up the transfers between the WineTestBot server
and the VMs (especially for the logs). Unfortunately there is a bug in
the perl SSH2 API so that compression is not enabled anyway:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701652
But maybe one day...
testbot/lib/WineTestBot/TestAgent.pm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/testbot/lib/WineTestBot/TestAgent.pm b/testbot/lib/WineTestBot/TestAgent.pm
index f3d5f0a..2b834f7 100644
--- a/testbot/lib/WineTestBot/TestAgent.pm
+++ b/testbot/lib/WineTestBot/TestAgent.pm
@@ -858,6 +858,11 @@ sub _Connect($)
require Net::SSH2;
$self->{ssh} = Net::SSH2->new();
$self->{ssh}->debug(1) if ($Debug > 1);
+
+ # Set up compression
+ $self->{ssh}->method('COMP_CS', 'zlib', 'none');
+ $self->{ssh}->method('COMP_SC', 'zlib', 'none');
+
if (!$self->{ssh}->connect($self->{sshfd}))
{
$self->_SetError($FATAL, "Unable to connect to the SSH server: " . $self->_ssherror());
--
1.7.10.4
More information about the wine-patches
mailing list