[Spambayes-checkins] spambayes/windows pop3proxy_service.py, 1.9,
1.10
Richie Hindle
richiehindle at users.sourceforge.net
Sat Aug 30 20:17:48 EDT 2003
Update of /cvsroot/spambayes/spambayes/windows
In directory sc8-pr-cvs1:/tmp/cvs-serv24125
Modified Files:
pop3proxy_service.py
Log Message:
Now that we wait for existing connections to complete during shutdown,
increased the service-stop timeout from 20 to 60 seconds (you have to
draw the line somewhere, but 20 seconds was too quick).
Index: pop3proxy_service.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/windows/pop3proxy_service.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** pop3proxy_service.py 31 Aug 2003 00:26:11 -0000 1.9
--- pop3proxy_service.py 31 Aug 2003 02:17:46 -0000 1.10
***************
*** 106,110 ****
# Either user requested stop, or thread done - wait for it
# to actually stop, but reporting we are still alive.
! for i in range(20): # 20 seconds to shut down.
self.ReportServiceStatus(win32service.SERVICE_STOP_PENDING)
self.event_stopped.wait(1)
--- 106,113 ----
# Either user requested stop, or thread done - wait for it
# to actually stop, but reporting we are still alive.
! # Wait up to 60 seconds for shutdown before giving up and
! # exiting uncleanly - we wait for current proxy connections
! # to close, but you have to draw the line somewhere.
! for i in range(60):
self.ReportServiceStatus(win32service.SERVICE_STOP_PENDING)
self.event_stopped.wait(1)
More information about the Spambayes-checkins
mailing list