[Twisted-web] Re: Memory leak with twisted web server on QNX

Jean-Paul Calderone exarkun at divmod.com
Fri Nov 4 17:33:53 MST 2005


On Sat, 05 Nov 2005 01:25:31 +0100, Nagy Zsombor <zsombor at niif.hu> wrote:
>Hello everyone!
>
>[this is my first post]
>
>I had a serious memory leak with twisted 2.0.1 and twisted web 0.5, when I 
>created a web server with TLS, and every client connection increased the 
>memory usage.
>I played with it a lot, and found out, if I comment out line of code in 
>twisted.internet.posixbase, the leak is gone...
>
>This one:
>
>     322         def _startTLS(self):
>     323             self.TLS = 1
>     324             klass = self.__class__
>     325             class TLSConnection(_TLSMixin, klass):
>     326                 implements(interfaces.ISSLTransport)
>!!  327             #components.backwardsCompatImplements(TLSConnection)
>     328             self.__class__ = TLSConnection
>
>So if I uncomment this 'backwardCompatImplements' there is a serious memory 
>leak, if I comment it out, there is no leak.
>
>I can show you the test programs if you want me to.

This makes sense.  I'll see what I can do about it.

Jean-Paul



More information about the Twisted-web mailing list