Perl-Email-Project / Email-Valid

perl library to validate email addresses
19 stars 19 forks source link

unundled exception on timeout/ no network #29

Closed payam124 closed 8 years ago

payam124 commented 8 years ago

In case dns could not be resolved and one of inner modules respond with timeout, the whole function call would break and quite the program the easiest way of simulating this issue is using iptables to block outgoing udpo port 53 and start to use: (Email::Valid->address( -address => $email_address, -mxcheck => 1 , -tldcheck =>1, -fqdn =>1, -fudge =>1) ? "yes" : "no"); in a loop and see the program will get terminated

payam124 commented 8 years ago

it was my bad I didn't noticed the exception handling mechanism there