[Twisted-web] Re: Memory leak with twisted web server on QNX
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:
>[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
>I played with it a lot, and found out, if I comment out line of code in
>twisted.internet.posixbase, the leak is gone...
> 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.
More information about the Twisted-web