A tweak to the "H" retry rule from Michael Haardt.
authorPhilip Hazel <ph10@hermes.cam.ac.uk>
Thu, 16 Feb 2006 16:37:57 +0000 (16:37 +0000)
committerPhilip Hazel <ph10@hermes.cam.ac.uk>
Thu, 16 Feb 2006 16:37:57 +0000 (16:37 +0000)
doc/doc-txt/ChangeLog
src/src/retry.c

index c0df4a91f186b1ecb4428b912ae6739147f0eed0..2a00f1830adf5707fb646a127faa5ec9541311e8 100644 (file)
@@ -1,4 +1,4 @@
-$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.305 2006/02/16 14:54:15 ph10 Exp $
+$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.306 2006/02/16 16:37:57 ph10 Exp $
 
 Change log file for Exim from version 4.21
 -------------------------------------------
@@ -193,6 +193,8 @@ PH/37 When running in the test harness, use -odi for submitted messages (e.g.
 
 PH/38 Panic-die if .include specifies a non-absolute path.
 
+PH/39 A tweak to the "H" retry rule from its user.
+
 
 Exim version 4.60
 -----------------
index eb4cd46cc18900189a3b0d20fe10295615ef037f..dbfd3cee85554b0195d8baf39eefd5fcc4fba3db 100644 (file)
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/retry.c,v 1.7 2006/02/09 14:50:58 ph10 Exp $ */
+/* $Cambridge: exim/src/src/retry.c,v 1.8 2006/02/16 16:37:57 ph10 Exp $ */
 
 /*************************************************
 *     Exim - an Internet mail transport agent    *
@@ -798,7 +798,8 @@ for (i = 0; i < 3; i++)
               {
               next_try = now + rule->p1;
               if (next_gap > rule->p1)
-                next_try += random_number(next_gap - rule->p1);
+                next_try += random_number(next_gap - rule->p1)/2 +
+                  (next_gap - rule->p1)/2;
               }
             }
           }