[Twisted-Python] loseConnection() in BaseClient

Yun Mao maoy at cis.upenn.edu
Tue Sep 9 22:22:53 EDT 2003

Hi, I noticed that as a TCP client, the loseConnection() is inherited, and
without a reason argument. Why this is different from the TCPServer, where
a default reason argument is ConnectionDone?  Given such info, how to let
a TCP client protocol in connectionLost() detect it's due to a network
failure or a active close connection?



More information about the Twisted-Python mailing list