LWP::ConnCache::MaxKeepAliveRequests - A connection cache that enforces a max keep alive limit
my $ua = LWP::UserAgent->new;
total_capacity => 10,
max_keep_alive_requests => 100,
LWP::UserAgent is the default module for issuing HTTP requests from Perl. It has a keep_alive setting which by default allows unlimited requests to the same server. Some servers will disconnect you after a limited number of requests (in Apache 2 this is achieved with the MaxKeepAliveRequests directive). This module allows you to limit the maximum number of keep alive requests to a server.
Leon Brocard <firstname.lastname@example.org>.
Copyright (C) 2008, Leon Brocard
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
To install LWP::ConnCache::MaxKeepAliveRequests, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.