benningm / mtpolicyd

a modular policy daemon for postfix
21 stars 3 forks source link

v2.01 Undefined subroutine &Mail::MtPolicyd::SessionCache::Memcached::usleep #17

Closed LuckyFellow closed 8 years ago

LuckyFellow commented 8 years ago

If configured using Memcached as session storage and if mails from the same user gets processed too frequently, I receive this error message:

error while processing request: Undefined subroutine &Mail::MtPolicyd::SessionCache::Memcached::usleep called at /usr/local/share/perl/5.20.2/Mail/MtPolicyd/SessionCache/Memcached.pm line 30, line 104.\n

in file: /usr/local/share/perl/5.20.2/Mail/MtPolicyd/SessionCache/Memcached.pm Line 30 is: usleep( $self->lock_wait * $try ); Changing it to: Time::HiRes::usleep( $self->lock_wait * $try );

solves the error.

LuckyFellow commented 8 years ago

Same is true for: /usr/local/share/perl/5.20.2/Mail/MtPolicyd/SessionCache/Redis.pm