Perl-Email-Project / Email-Address

Email::Address perl module
5 stars 11 forks source link

parse method hangs indefinitley #10

Open holybit opened 9 years ago

holybit commented 9 years ago

Not sure what is causing this but here is a replication example with an email from the wild.

To give a little more color the email unix shop I work at handles billions of emails a day. We have a Perl daemon using Email::Address to parse the header To: fields. It has been hanging on this issue 10-30x a day and has to be manually restarted. We would rather not cron a re-start job as it's a terrible band aid.

If this can't be fixed can you suggest ways that I might cope? At a minimum I think Email::Address should provide some sort of internal timer and throw an error if it takes more then x milliseconds to return a result from parse.

rjbs commented 9 years ago

See also https://gist.github.com/rjbs/44bce3c49b35f074896a