# $client should contain a SOAP::Lite client that uses HTTP/HTTPS # Cache up to 10 connections my $max_connections = 10; # Retrieve the HTTP Transport object. my $transport = $client->transport(); # Use LWP::UserAgent's conn_cache() method. $transport->conn_cache({ total_capacity => $max_connections });