class documentation

class LimitTotalConnectionsFactory(ServerFactory): (source)

Known subclasses: twisted.protocols.ftp.FTPFactory

View In Hierarchy

Factory that limits the number of simultaneous connections.
Method build​Protocol Undocumented
Method register​Protocol Undocumented
Method unregister​Protocol Undocumented
Class Variable connection​Limit maximum number of connections.
Class Variable overflow​Protocol Protocol to use for new connections when connectionLimit is exceeded. If None (the default value), excess connections will be closed immediately.
Instance Variable connection​Count 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.