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

To start off with, last night I had a major bottleneck in python's generic iasynchat modules for large amounts of data.. so I switched to twisted last night. 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): File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 227, in callback self._startRunCallbacks(result) File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 288, in _startRunCallbacks self._runCallbacks() File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 313, in _runCallbacks self.result = callback(self.result, *args, **kw) File "/usr/lib/python2.3/site-packages/twisted/internet/base.py", line 317, in _cbContinueSystemEvent self._continueSystemEvent(eventType) --- <exception caught here> --- File "/usr/lib/python2.3/site-packages/twisted/internet/base.py", line 325, in _continueSystemEvent callable(*args, **kw) File "/usr/lib/python2.3/site-packages/twisted/persisted/sob.py", line 135, in save self._saveTemp(filename, passphrase, dumpFunc) File "/usr/lib/python2.3/site-packages/twisted/persisted/sob.py", line 103, in _saveTemp dumpFunc(self.original, f) File "/usr/lib/python2.3/site-packages/twisted/persisted/sob.py", line 119, in dumpFunc pickle.dump(obj, file, 1) 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.. Thanks, Joshua Moore-Oliva

On Fri, 10 Sep 2004 12:01:31 -0400, Joshua Moore-Oliva <josh@chatgris.com> wrote:
"(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

On Fri, 10 Sep 2004 12:01:31 -0400, Joshua Moore-Oliva <josh@chatgris.com> wrote:
"(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
participants (2)
-
Christopher Armstrong
-
Joshua Moore-Oliva