spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j.@apache.org
Subject svn commit: r583216 - /spamassassin/trunk/spamd/spamd.raw
Date Tue, 09 Oct 2007 16:33:14 GMT
Author: jm
Date: Tue Oct  9 09:33:14 2007
New Revision: 583216

URL: http://svn.apache.org/viewvc?rev=583216&view=rev
Log:
try out 10 retries instead of 3, see if that fixes the annoying spamd_kill_restart.t and spamd_kill_restart_rr.t
test failures on the vmsa buildbot

Modified:
    spamassassin/trunk/spamd/spamd.raw

Modified: spamassassin/trunk/spamd/spamd.raw
URL: http://svn.apache.org/viewvc/spamassassin/trunk/spamd/spamd.raw?rev=583216&r1=583215&r2=583216&view=diff
==============================================================================
--- spamassassin/trunk/spamd/spamd.raw (original)
+++ spamassassin/trunk/spamd/spamd.raw Tue Oct  9 09:33:14 2007
@@ -706,13 +706,14 @@
   # retry 3 times to bind to the listening socket; 3 seconds delay,
   # max, but should allow a little time for any existing shutting-down
   # server to complete shutdown
-  for my $retry (1 .. 3) {
+  my $lastretry = 10;
+  for my $retry (1 .. $lastretry) {
     if ($retry > 1) { sleep 1; }
 
     eval { $sub->(); };
     last unless ($@);       # success => break
 
-    if ($retry == 3) {
+    if ($retry == $lastretry) {
       die $@;               # this is fatal
     } else {
       warn "server socket setup failed, retry $retry: $@";



Mime
View raw message