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

Joshua Moore-Oliva josh at chatgris.com
Fri Sep 10 10:19:10 MDT 2004


Sorry to bother you all, I just realised it was killed via OOM..  I believe the db lib I'm using has a leak in it.

Joshua Moore-Oliva.

On September 10, 2004 12:01 pm, Joshua Moore-Oliva wrote:
> 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
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> 




More information about the Twisted-Python mailing list