1. Martin Thorsen Ranang
  2. orbited


desmaj  committed 7d394c7

hopefully releasing the outgoing protocol will be a bugfix for TRAC-150

  • Participants
  • Parent commits 32b038b
  • Branches TRAC-150

Comments (0)

Files changed (2)

File daemon/orbited/cometsession.py

View file
  • Ignore whitespace
         return self.connections[path]
     def removeConn(self, conn):
-        self.logger.debug("before removeConn: %s",
-                          len(objgraph.by_type(TCPConnectionResource)))
         if conn.key in self.connections:
             del self.connections[conn.key]
-        self.logger.debug("after removeConn: %s",
-                          len(objgraph.by_type(TCPConnectionResource)))
     def connectionMade(self, conn):

File daemon/orbited/proxy.py

View file
  • Ignore whitespace
     def outgoingConnectionLost(self, outgoingConn, reason):
         self.logger.debug("remoteConnectionLost %s" % reason)
+        # forget about the outgoing protocol so that it can get cleaned up
+        self.outgoingConn = None
     def write(self, data):
 #        data = base64.b64encode(data)