Part of twisted.internet.interfaces View Source View In Hierarchy
|Method||connectionLost||Called when the connection was lost.|
Inherited from ILoggingContext:
|Returns||The platform-specified representation of a file-descriptor number.|
Called when the connection was lost.
This is called when the connection on a selectable object has been lost. It will be called whether the connection was closed explicitly, an exception occurred in an event handler, or the other end of the connection closed it first.See also
IHalfCloseableDescriptorif your descriptor wants to be notified separately of the two halves of the connection being closed.
|Parameters||reason||A failure instance indicating the reason why the connection was lost.