[CalendarServer-changes] [2432] CalendarServer/trunk/twistedcaldav/method/put_common.py

source_changes at macosforge.org source_changes at macosforge.org
Mon May 19 13:56:23 PDT 2008


Revision: 2432
          http://trac.macosforge.org/projects/calendarserver/changeset/2432
Author:   cdaboo at apple.com
Date:     2008-05-19 13:56:21 -0700 (Mon, 19 May 2008)

Log Message:
-----------
Increase the UID reservation timeout and loop count to better cope with heavy load.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/method/put_common.py

Modified: CalendarServer/trunk/twistedcaldav/method/put_common.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/method/put_common.py	2008-05-19 17:48:15 UTC (rev 2431)
+++ CalendarServer/trunk/twistedcaldav/method/put_common.py	2008-05-19 20:56:21 UTC (rev 2432)
@@ -415,7 +415,7 @@
             # Lets use a deferred for this and loop a few times if we cannot reserve so that we give
             # time to whoever has the reservation to finish and release it.
             failure_count = 0
-            while(failure_count < 5):
+            while(failure_count < 10):
                 try:
                     destination_index.reserveUID(uid)
                     reserved = True
@@ -427,7 +427,7 @@
                 d = Deferred()
                 def _timedDeferred():
                     d.callback(True)
-                reactor.callLater(0.1, _timedDeferred)
+                reactor.callLater(0.5, _timedDeferred)
                 pause = waitForDeferred(d)
                 yield pause
                 pause.getResult()

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080519/ec39e784/attachment.htm 


More information about the calendarserver-changes mailing list