[Bps-public-commit] r19844 - Net-Google-Code/trunk/lib/Net/Google/Code/Role

jesse at bestpractical.com jesse at bestpractical.com
Tue Jun 2 20:58:59 EDT 2009


Author: jesse
Date: Tue Jun  2 20:58:59 2009
New Revision: 19844

Modified:
   Net-Google-Code/trunk/lib/Net/Google/Code/Role/Fetchable.pm

Log:
switch to using keepalive rather than a manually created connection cache

Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Role/Fetchable.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Role/Fetchable.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Role/Fetchable.pm	Tue Jun  2 20:58:59 2009
@@ -2,17 +2,15 @@
 use Moose::Role;
 use Params::Validate ':all';
 use WWW::Mechanize;
-use LWP::ConnCache;
 use Encode;
 
 our $MECH;
 
 sub mech { 
-    
     if (!$MECH) { 
         $MECH = WWW::Mechanize->new(
             agent       => 'Net-Google-Code',
-            conn_cache  => LWP::ConnCache->new(),
+            keep_alive  => 4,
             cookie_jar  => {},
             stack_depth => 1,
             timeout     => 60,



More information about the Bps-public-commit mailing list