[Twisted-Python] Connection was closed cleanly.

Glyph glyph at twistedmatrix.com
Thu Apr 11 02:48:29 EDT 2013

On Apr 9, 2013, at 2:48 AM, Sergey Gerasimov <sergun at gmail.com> wrote:

> Hello to all!
> I see in the log file many failures like:
> [Broker, client Failure: twisted.spread.pb.PBConnectionLost: [Failure instance: Traceback (failure with no frames): < class ‘twisted.internet.error.ConnectionDone’>: Connection was closed cleanly.]
> All communications via PB use loopback in my program.
> I don’t see any unhandled exceptions..
> What is reason of these errors?

My guess is that this means that you made a callRemote call, and the other end closed the connection for some reason before it shut down.  Maybe you have implemented a 'quit' command that calls loseConnection on the transport, which would make this happen almost all the time.

In order to actually say though, you'd have to attach a simple program that could reproduce this issue.  See <http://sscce.org>.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20130411/623a45b2/attachment.htm 

More information about the Twisted-Python mailing list