[CalendarServer-changes] [8248] CalendarServer/branches/users/glyph/parallel-sim/contrib/performance /loadtest/ampsim.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Nov 1 17:52:14 PDT 2011
Revision: 8248
http://trac.macosforge.org/projects/calendarserver/changeset/8248
Author: glyph at apple.com
Date: 2011-11-01 17:52:14 -0700 (Tue, 01 Nov 2011)
Log Message:
-----------
IHalfCloseableProtocol implementation to see which side of the connection is being closed
Modified Paths:
--------------
CalendarServer/branches/users/glyph/parallel-sim/contrib/performance/loadtest/ampsim.py
Modified: CalendarServer/branches/users/glyph/parallel-sim/contrib/performance/loadtest/ampsim.py
===================================================================
--- CalendarServer/branches/users/glyph/parallel-sim/contrib/performance/loadtest/ampsim.py 2011-11-02 00:51:58 UTC (rev 8247)
+++ CalendarServer/branches/users/glyph/parallel-sim/contrib/performance/loadtest/ampsim.py 2011-11-02 00:52:14 UTC (rev 8248)
@@ -51,9 +51,14 @@
from copy import deepcopy
from plistlib import writePlistToString, readPlistFromString
+
+from zope.interface import implements
+
+from twisted.python.log import msg, addObserver
from twisted.protocols.amp import AMP, Command, String, Unicode
+from twisted.internet.interfaces import IHalfCloseableProtocol
+
from twext.enterprise.adbapi2 import Pickle
-from twisted.python.log import msg, addObserver
from contrib.performance.loadtest.sim import _DirectoryRecord, LoadSimulator
@@ -94,6 +99,8 @@
manager.
"""
+ implements(IHalfCloseableProtocol)
+
def __init__(self, reactor):
super(Worker, self).__init__()
self.reactor = reactor
@@ -129,7 +136,15 @@
msg("Standard IO connection lost.")
+ def readConnectionLost(self):
+ msg("Read connection lost.")
+
+ def writeConnectionLost(self):
+ msg("Write connection lost.")
+
+
+
class Manager(AMP):
"""
Protocol to be run in the coordinating process, to respond to messages from
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111101/451ae5e2/attachment.html>
More information about the calendarserver-changes
mailing list