MikeL has asked for the wisdom of the Perl Monks concerning the following question:
I have a poor DSL connection that swamps easily, and just plain "farts" more than occasionally. When this happens, the next request will time out. The connection will come back within a minute or so, but in the meantime, my program will have crashed with:
getnameinfo - Temporary failure in name resolution at /usr/share/perl5/HTTP/Daemon.pm line 182
Line 182:
$uri = $HTTP::URI_CLASS->new($uri, $self->daemon->url);
I'm over my head here, I'm not finding the getnameinfo() call, it looks to me like it's basically just building a string.
Can I just put a 'try' around it? I'd much rather lose this one msg than have the program do a 'die' like this.
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::Daemon barf on bad DNS (updated)
by haukex (Archbishop) on Aug 30, 2023 at 07:04 UTC |