Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Assume there is whatever module that does whatever Ajax stuff and, without page reload, frequently fires "Drupal.attachBehaviors".
What comes up?
var messageTimer = setInterval(pmGrowlCheckNew, Drupal.settings.pmGrowlInterval);
Is executed ever and ever again which multiplicates the intervals totals excessively and (I had this by accident while testing some other ajax stuff) leads to pmgrowls every 0.x seconds. Best way to DOS.
IMO, there should be a check to prevent that. Someting like
if (!messageTimer) {
var messageTimer = setInterval(pmGrowlCheckNew, Drupal.settings.pmGrowlInterval);
}
Comments
Comment #1
doitDave CreditAttribution: doitDave commentedAfter some more tweaking I now have a) some more grey hair b) this code:
which works and only works at the defined growl times.
Comment #2
BerdirPlease provide that as a patch, thanks :)