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

Joshua Moore-Oliva josh at chatgris.com
Fri Sep 10 12:01:31 EDT 2004

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
          File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 288, in _startRunCallbacks
          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
        --- <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

More information about the Twisted-Python mailing list