pysyncobj/transport.py
def _onDisconnected(self, conn):
        """
        Callback for when a connection is terminated or considered dead. Initiates a reconnect if necessary.

        :param conn: connection object
        :type conn: TcpConnection
        """

        self._unknownConnections.discard(conn)
        node = self._connToNode(conn)
        if node is not None:
            if node in self._nodes:
                self._onNodeDisconnected(node)
                self._connectIfNecessarySingle(node)
            else:
                self._readonlyNodes.discard(node)
                self._onReadonlyNodeDisconnected(node)
def _onDisconnected(self, conn):
        self._unknownConnections.discard(conn)
        node = self._connToNode(conn)
        if node is not None:
            if node in self._nodes:
                self._onNodeDisconnected(node)
                self._connectIfNecessarySingle(node)
            else:
                self._readonlyNodes.discard(node)
                self._onReadonlyNodeDisconnected(node)
def _onDisconnected ( self , conn ) : self . _unknownConnections . discard ( conn ) node = self . _connToNode ( conn ) if node is not None : if node in self . _nodes : self . _onNodeDisconnected ( node ) self . _connectIfNecessarySingle ( node ) else : self . _readonlyNodes . discard ( node ) self . _onReadonlyNodeDisconnected ( node )
Callback for when a connection is terminated or considered dead. Initiates a reconnect if necessary.

        :param conn: connection object
        :type conn: TcpConnection
Callback for when a connection is terminated or considered dead . Initiates a reconnect if necessary .