[CalendarServer-changes] [15646] CalendarServer/trunk/contrib/performance/loadtest/ical.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jun 1 08:01:12 PDT 2016
Revision: 15646
http://trac.calendarserver.org//changeset/15646
Author: cdaboo at apple.com
Date: 2016-06-01 08:01:12 -0700 (Wed, 01 Jun 2016)
Log Message:
-----------
Only sync the notifications collection when there is a change.
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/loadtest/ical.py
Modified: CalendarServer/trunk/contrib/performance/loadtest/ical.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/ical.py 2016-05-31 17:36:37 UTC (rev 15645)
+++ CalendarServer/trunk/contrib/performance/loadtest/ical.py 2016-06-01 15:01:12 UTC (rev 15646)
@@ -1423,7 +1423,8 @@
oldToken = ""
self._notificationCollection = notificationCollection
newToken = notificationCollection.changeToken
- yield self._updateNotifications(oldToken, newToken)
+ if oldToken != newToken:
+ yield self._updateNotifications(oldToken, newToken)
else:
# When there is no sync REPORT, clients have to do a full PROPFIND
# on the notification collection because there is no ctag
@@ -2650,6 +2651,7 @@
return []
+
class ErrorLogger(object):
"""
Requests which get an incorrect response code or take too long are logged
@@ -2718,6 +2720,7 @@
return []
+
def main():
from urllib2 import HTTPDigestAuthHandler
from twisted.internet import reactor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20160601/ec45e4c3/attachment.html>
More information about the calendarserver-changes
mailing list