Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 :)