class documentation

class LimitTotalConnectionsFactory(ServerFactory): (source)

Known subclasses: twisted.protocols.ftp.FTPFactory

View In Hierarchy

Factory that limits the number of simultaneous connections.
Method buildProtocol Undocumented
Method registerProtocol Undocumented
Method unregisterProtocol Undocumented
Class Variable connectionLimit maximum number of connections.
Class Variable overflowProtocol Protocol to use for new connections when connectionLimit is exceeded. If None (the default value), excess connections will be closed immediately.
Instance Variable connectionCount number of current connections.
def buildProtocol(self, addr): (source)

Undocumented

def registerProtocol(self, p): (source)

Undocumented

def unregisterProtocol(self, p): (source)

Undocumented

connectionLimit: int or None = (source)
maximum number of connections.
overflowProtocol: Protocol or None = (source)
Protocol to use for new connections when connectionLimit is exceeded. If None (the default value), excess connections will be closed immediately.
connectionCount: int = (source)
number of current connections.