projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5675b4e
)
nodeadmin: node stops itself if a hotline file hasn't been touched in 120 seconds...
author
Zooko O'Whielacronx
<zooko@zooko.com>
Sun, 8 Mar 2009 03:50:39 +0000
(20:50 -0700)
committer
Zooko O'Whielacronx
<zooko@zooko.com>
Sun, 8 Mar 2009 03:50:39 +0000
(20:50 -0700)
A test failed on draco (MacPPC) because it took 67.1 seconds to get around to running the test, and the node had already stopped itself when the hotline file was 60 seconds old.
src/allmydata/client.py
patch
|
blob
|
history
diff --git
a/src/allmydata/client.py
b/src/allmydata/client.py
index 766cae047eff087ac81613a03d21c24676a2608a..b997f306ed2b85a845821f163fb580cf894f144e 100644
(file)
--- a/
src/allmydata/client.py
+++ b/
src/allmydata/client.py
@@
-300,7
+300,7
@@
class Client(node.Node, pollmixin.PollMixin):
def _check_hotline(self, hotline_file):
if os.path.exists(hotline_file):
mtime = os.stat(hotline_file)[stat.ST_MTIME]
- if mtime > time.time() -
6
0.0:
+ if mtime > time.time() -
12
0.0:
return
else:
self.log("hotline file too old, shutting down")