[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[minion-cvs] Heisenbugfix: Check time _after_ acquiring lock
Update of /home/minion/cvsroot/src/minion/lib/mixminion/server
In directory moria.mit.edu:/tmp/cvs-serv20459/src/minion/lib/mixminion/server
Modified Files:
ServerMain.py
Log Message:
Heisenbugfix: Check time _after_ acquiring lock
Index: ServerMain.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/ServerMain.py,v
retrieving revision 1.131
retrieving revision 1.132
diff -u -d -r1.131 -r1.132
--- ServerMain.py 27 Jul 2004 04:33:20 -0000 1.131
+++ ServerMain.py 27 Jul 2004 04:42:33 -0000 1.132
@@ -1109,12 +1109,12 @@
packets to send, and sends them to the appropriate queues.
"""
- now = time.time()
# Before we mix, we need to log the hashes to avoid replays.
try:
# There's a threading issue here... in between this sync and the
# 'mix' below, nobody should insert into the mix pool.
self.mixPool.lock()
+ now = time.time()
self.packetHandler.syncLogs()
LOG.trace("Mix interval elapsed")