You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys, I'm having a problem during the implementation of outbound rate limits, it seems to work just for the first time for the outbound part.
Example :
If I'm using the following Config in limit.ini :
[outbound]
enabled=true
domain=1
delay=10
Then queuing 5 mails.
Expected :
Deliver 1 mail every 10 seconds.
Current behaviour :
Deliver the first mail then delayed the rest '4' mails for 10 seconds (as expected), but after the first 10 seconds the 'send_mail' hook will be called and delayed the '4' mails another time and keep delay the delivery every 10 seconds... without delivering.
NOTE : I think that happen because of the TOTAL that will be incremented every time so the count variable will be always greater than limit and will reach the delivered condition just the first time :
if (count <= limit) return next();
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi guys, I'm having a problem during the implementation of outbound rate limits, it seems to work just for the first time for the outbound part.
Example :
If I'm using the following Config in limit.ini :
Then queuing 5 mails.
Expected :
Deliver 1 mail every 10 seconds.
Current behaviour :
Deliver the first mail then delayed the rest '4' mails for 10 seconds (as expected), but after the first 10 seconds the 'send_mail' hook will be called and delayed the '4' mails another time and keep delay the delivery every 10 seconds... without delivering.
NOTE : I think that happen because of the
TOTAL
that will be incremented every time so thecount
variable will be always greater thanlimit
and will reach the delivered condition just the first time :Thanks in advance.
The text was updated successfully, but these errors were encountered: