[CalendarServer-changes] [9009] CalendarServer/trunk/contrib/performance/loadtest/ical.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Apr 10 12:25:35 PDT 2012


Revision: 9009
          http://trac.macosforge.org/projects/calendarserver/changeset/9009
Author:   cdaboo at apple.com
Date:     2012-04-10 12:25:35 -0700 (Tue, 10 Apr 2012)
Log Message:
-----------
Differentiate between push and timed poll polling operations.

Modified Paths:
--------------
    CalendarServer/trunk/contrib/performance/loadtest/ical.py

Modified: CalendarServer/trunk/contrib/performance/loadtest/ical.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/ical.py	2012-04-10 19:22:01 UTC (rev 9008)
+++ CalendarServer/trunk/contrib/performance/loadtest/ical.py	2012-04-10 19:25:35 UTC (rev 9009)
@@ -205,7 +205,7 @@
             if node:
                 url, _ignore_name, _ignore_kind = self.nodes.get(node, (None, None, None))
                 if url is not None:
-                    self._client._checkCalendarsForEvents(url)
+                    self._client._checkCalendarsForEvents(url, push=True)
 
 
 
@@ -730,7 +730,7 @@
 
 
     @inlineCallbacks
-    def _checkCalendarsForEvents(self, calendarHomeSet, firstTime=False):
+    def _checkCalendarsForEvents(self, calendarHomeSet, firstTime=False, push=False):
         """
         The actions a client does when polling for changes, or in response to a
         push notification of a change. There are some actions done on the first poll
@@ -738,7 +738,7 @@
         """
 
         try:
-            result = yield self._newOperation("poll", self._poll(calendarHomeSet, firstTime))
+            result = yield self._newOperation("push" if push else "poll", self._poll(calendarHomeSet, firstTime))
         finally:
             self._checking.remove(calendarHomeSet)
         returnValue(result)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120410/7fea2172/attachment-0001.html>


More information about the calendarserver-changes mailing list