[Spambayes-checkins] spambayes/contrib sb_bnfilter.py,1.1,1.2
Toby Dickenson
htrd at users.sourceforge.net
Mon Mar 29 01:52:42 EST 2004
Update of /cvsroot/spambayes/spambayes/contrib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12589/contrib
Modified Files:
sb_bnfilter.py
Log Message:
less aggressive timings. allow plenty of time to start the rest of spambayes in the server
Index: sb_bnfilter.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/contrib/sb_bnfilter.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** sb_bnfilter.py 25 Mar 2004 19:53:15 -0000 1.1
--- sb_bnfilter.py 29 Mar 2004 06:52:39 -0000 1.2
***************
*** 177,188 ****
# socket file exists but noone listening.
refused_count += 1
! if refused_count == 2:
! # This is the second time we havent been able to connect. Maybe that socket
! # file has got orphaned. remove it, wait, and try again
try:
os.unlink(file)
except EnvironmentError:
pass
! elif refused_count>2:
raise
else:
--- 177,189 ----
# socket file exists but noone listening.
refused_count += 1
! if refused_count == 6:
! # We have been waiting ages and still havent been able to connect. Maybe that socket
! # file has got orphaned. remove it, wait, and try again. We need to allow
! # enough time for sb_bnserver to initialise the rest of spambayes
try:
os.unlink(file)
except EnvironmentError:
pass
! elif refused_count>6:
raise
else:
More information about the Spambayes-checkins
mailing list