View Issue Details

IDProjectCategoryView StatusLast Update
0015419phplist applicationMessage Send Processpublic20-04-10 15:15
Reporterbeuss 
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product Version2.10.10 
Target Version2.10.12Fixed in Version2.10.12 
Summary0015419: Allow MAILQUEUE_THROTTLE to be a decimal value
DescriptionIt can be useful to have a delay between mail send of less than one second. Attached patch allow MAILQUEUE_THROTTLE to be specified as a decimal
TagsNo tags attached.

Activities

02-03-10 14:14

 

processqueue-usleep.patch (564 bytes)
--- admin/processqueue.php.orig	2010-03-02 15:07:19.000000000 +0100
+++ admin/processqueue.php	2010-03-02 15:06:53.000000000 +0100
@@ -684,7 +684,7 @@
                unset($running_throttle_delay);
              }
            } elseif (MAILQUEUE_THROTTLE) {
-             sleep(MAILQUEUE_THROTTLE);
+             usleep(MAILQUEUE_THROTTLE * 1000000);
            } elseif (MAILQUEUE_BATCH_SIZE && MAILQUEUE_AUTOTHROTTLE && $sent > 10) {
              $totaltime = $GLOBALS['processqueue_timer']->elapsed(1);
              $msgperhour = (3600/$totaltime) * $sent;