Subject: | transparent client-side failover for LWP::UserAgent |
IO::Socket::INET provides a nice mechanism for trying to open a socket to successive
multiple DNS A record entries in event of socket open failure, using the 'MultiHomed' key in
the constructor
LWP::UserAgent should expose this (and/or a general mechanism to pass IO::Socket::INET
options in)
At the moment, I can achieve this by
@LWP::Protocol::http::EXTRA_SOCK_OPTS = ('MultiHomed'=>1);
but surely it could be part of the UserAgent constructor (like timeout).
This kind of client-side behaviour is pretty standard for GUI browsers.
anyway, just part of the wishlist.