Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: Race condition with Mail::Sender::MailMsg?

by Marshall (Canon)
on Mar 09, 2012 at 23:42 UTC ( [id://958813]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Race condition with Mail::Sender::MailMsg?
in thread Race condition with Mail::Sender::MailMsg?

Thanks for posting your working code!
some minor suggestions:
.... eval { local $SIG{ALRM} = sub { die "MailFile Timeout\n" }; alarm $mailfiletimeout; #20 seconds $sender->MailFile(...); alarm 0; }; if ($@) { die unless $@ eq "MailFile Timeout\n"; # propagate # unexpected errors logerror("Timeout ....); return 0; } # no else{} is required, what "else" ???? # Simplify the logic - reduduce levels of indendation # if there is a serious error we don't get here... # there is no "else" # proceed with more code...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://958813]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-25 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found