[Twisted-Python] What does this error mean? (Port 12345 Closed)

Christopher Armstrong radeex at gmail.com
Fri Sep 10 12:15:04 EDT 2004

On Fri, 10 Sep 2004 12:01:31 -0400, Joshua Moore-Oliva
<josh at chatgris.com> wrote:
> It ran great, 50x faster!!.  It ran for about 2.5 hours, and then I received this error..
> 2004/09/10 02:54 CDT [-] (Port 12345 Closed)
> 2004/09/10 02:54 CDT [-] Stopping factory <twisted.internet.protocol.ServerFactory instance at 0x4076628c>
> 2004/09/10 02:54 CDT [-] Saving chatserver application to chatserver-shutdown.tap...
> 2004/09/10 02:54 CDT [-] Traceback (most recent call last):
>         cPickle.PicklingError: Can't pickle __builtin__.SqlSocket: attribute lookup __builtin__.SqlSocket failed
> I am rather confused as to how a port can be closed?  I am very new to twisted.
> Could anyone shed some light on this?  I need a stable long running daemon, 
> and I am attempting to figure out why this shutdown occurred..

"(Port 12345 Closed)" just means that it stopped listening on 12345 in
response to a request for shutdown. The traceback is totally
unrelated, and probably unimportant. twistd saves the state of your
app on shutdown unless you pass the "-o" option. You should probably
pass the "-o" option unless you have a good reason to save the state.

 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+            http://radix.twistedmatrix.com

More information about the Twisted-Python mailing list