A quick look at the POD suggests that Net::OpenSSH implements timeouts that will close connections after a lack of network activity.
A grep inside turns up this calculation which suggests that the default timeout is 90 (or 30?) seconds:
my $timeout = int((($self->{_timeout} || 90) + 2)/3);
My guess is that if the remote system is idle, tail -f syslog will produce no output and so the module closes the connection. Maybe you should consider using an explicit timeout.
In reply to Re^3: threads and Net::OpenSSH (Ask [salva] :)
by BrowserUk
in thread threads and Net::OpenSSH
by rastoboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |