Subject: | KeepLive is not working |
Date: | Mon, 21 Sep 2015 18:38:41 +0200 |
To: | bug-Net-SSH2 [...] rt.cpan.org |
From: | Bogenstätter Marcus <bogenstaetter [...] gmx.de> |
Dear maintainers,
I have tested the latest development version 0.54_02 for the new methods
keepalive_*.
It seems as if the new methods are not really doing anything, I have
traced the network packets using wireshark.
The environment that I have tested against:
Windows 8 64 Bit
This is perl 5, version 16, subversion 3 (v5.16.3) built for
MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2012, Larry Wall
Binary build 1603 [296746] provided by ActiveState
http://www.ActiveState.com
Built Mar 13 2013 11:29:21
I only got it compiled with perls up to 5.18.
The code I was using:
my $ssh2 = $self->{ssh2conn};
[...]
$ssh2->connect($host,$port);
[...]
$ssh2->auth_password($user,$self->{key}); # for ssh auth method 'password'
[...]
$ssh2->keepalive_config(1,30);
my $chan=$ssh2->channel();
if ($ssh2->error or !$chan) {
$self->logError();
return ( undef, undef);
}
$chan->shell();
[...]
Or maybe I am doing something wrong?
Any suggestions are very welcome!
Kind regards,
Bogi