GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Net::OpenSSH::ConnectionCache(3) User Contributed Perl Documentation Net::OpenSSH::ConnectionCache(3)

Net::OpenSSH::ConnectionCache - cache and reuse SSH connections transparently

  use Net::OpenSSH;
  use Net::OpenSSH::ConnectionCache;

  for (1..10) {
    my $ssh = Net::OpenSSH->new($host);
    $ssh->system("$cmd $_");
  }

This module installs a $Net::OpenSSH::FACTORY hook implementing a SSH connection caching scheme.

$Net::OpenSSH::ConnectionCache::MAX_SIZE controls the cache size. Once as many connections are allocated, the module will try to free any of them before allocating a new one.

The function "clean_cache" makes the module forget (and close) all the cached connections:

  Net::OpenSSH::ConnectionCache::clean_cache();

Copyright (C) 2011, 2014 by Salvador Fandiño (sfandino@yahoo.com)

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.

2020-02-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.