Subject: | Infinite authentication loop when the server won't allow us in? |
When the server I am trying to fetch a page from won't let me in (maybe
my keytab/credentials are bad or something), LWP with
LWP::Authen::Negotiate seems to keep trying to fetch the page ad
infinitum - leading to a busy process that slowly but surely eats all
available RAM.
When I can auth correctly with the server, it works great.
I was wondering whether there is a way to configure
LWP/LWP::Authen::Negotiate to give up after a number of tries (it gets a
401 on the very first request, so it has to retry once, but if I could
say "Give up after twenty 401's in a row", I think I'd be home free.)
Does this sound plausible, or am I barking up the wrong tree?
I will be happy to try and produce a minimal example if it sounds like
It Already Should Just Work(tm)
I am using LWP::Authen::Negotiate 0.06 with LWP 5.808, perl 5.8.8 on
Ubuntu 8.04.2 (hardy).
Thanks!
Adam