"be consistent" | |
PerlMonks |
Re^2: Using WWW::Scripter with NTLM authenticationby LambethBoy (Initiate) |
on Feb 03, 2011 at 10:55 UTC ( [id://885968]=note: print w/replies, xml ) | Need Help?? |
Sorry, my example wasn't very helpful in that respect. Yes, you are right about it controlling the cache capacity. However, even when I set it to large values (100, 1000, 100000 etc) it makes no difference. After some digging around in the code for LWP::UserAgent (5.835) I found this delete $copy->{conn_cache};
So it looks like the conn_cache data is not inherited when the UserAgent is cloned. If I comment this line out (delete $copy->{conn_cache};), my problems go away. Could a more enlightened member tell me whether or not this looks like a bug, or am I just barking mad and fiddling with something with terrible unintended consequences? Cheers
In Section
Seekers of Perl Wisdom
|
|