[CalendarServer-changes] [6115] CalendarServer/trunk/contrib/performance/benchmark.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Aug 18 15:01:53 PDT 2010
Revision: 6115
http://trac.macosforge.org/projects/calendarserver/changeset/6115
Author: exarkun at twistedmatrix.com
Date: 2010-08-18 15:01:49 -0700 (Wed, 18 Aug 2010)
Log Message:
-----------
fix intermittent hang when dtrace produces more than the READY line at once
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/benchmark.py
Modified: CalendarServer/trunk/contrib/performance/benchmark.py
===================================================================
--- CalendarServer/trunk/contrib/performance/benchmark.py 2010-08-18 19:32:31 UTC (rev 6114)
+++ CalendarServer/trunk/contrib/performance/benchmark.py 2010-08-18 22:01:49 UTC (rev 6115)
@@ -48,7 +48,9 @@
self.out.write(bytes)
else:
self._out += bytes
- if self._out == 'READY\n':
+ if self._out.startswith('READY\n'):
+ self.out.write(self._out[len('READY\n'):])
+ del self._out
started = self.started
self.started = None
started.callback(None)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100818/028eaae8/attachment.html>
More information about the calendarserver-changes
mailing list