Increase ophandle expiration times, per #577
authorKevan Carstensen <kevan@isnotajoke.com>
Sun, 21 Feb 2010 01:05:12 +0000 (17:05 -0800)
committerKevan Carstensen <kevan@isnotajoke.com>
Sun, 21 Feb 2010 01:05:12 +0000 (17:05 -0800)
src/allmydata/web/operations.py

index 2466ecdaa584b6124e550f299e4cf4f550717684..7fbf8d2701f9e7a540da1140720e64c8d1af4d98 100644 (file)
@@ -14,14 +14,15 @@ from allmydata.web.common import IOpHandleTable, WebError, \
 
 MINUTE = 60
 HOUR = 60*MINUTE
+DAY = 24*HOUR
 
 (MONITOR, RENDERER, WHEN_ADDED) = range(3)
 
 class OphandleTable(rend.Page, service.Service):
     implements(IOpHandleTable)
 
-    UNCOLLECTED_HANDLE_LIFETIME = 1*HOUR
-    COLLECTED_HANDLE_LIFETIME = 10*MINUTE
+    UNCOLLECTED_HANDLE_LIFETIME = 4*DAY
+    COLLECTED_HANDLE_LIFETIME = 1*DAY
 
     def __init__(self):
         # both of these are indexed by ophandle