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

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


On Fri, 4 Nov 2005 19:33:53 -0500, Jean-Paul Calderone <exarkun at divmod.com> wrote:
>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.
>

This should be fixed in r15022.  Could you give it a try and let me know?  If it fixes it, we should be able to get this into the next point release.

>Jean-Paul
>
>_______________________________________________
>Twisted-web mailing list
>Twisted-web at twistedmatrix.com
>http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>



More information about the Twisted-web mailing list