Memory leak in cherryssl.py

snacktime <[email protected]>
Newsgroups gmane.comp.python.cryptography
Message-ID <[email protected]>
I was hoping that maybe someone could see an obvious reason why this
code causes a memory leak.  This is an ssl wrapper for cherrypy, a
small python webserver.  When I use it, every request consumes a bit
more memory and the process just grows and grows.  When using cherrypy
without the wrapper it works fine.  My first thought was that it might
be a problem with m2crypto since without the wrapper the problem goes
away, which is why I am sending this to the list as well as the author
or sslcherry.

The test code is very simple, it just returns a string.  You can see
the wrapper code (it's very small) at:

http://www.cherrypy.org/attachment/wiki/SslCherry/sslcherry.3.py

Following is the code I use to start cherrypy using sslcherry:
-----------------------------------------------------------
from cherrypy import cpg
import sslcherry

class OT:

  def process(self):

    return "OK"

  process.exposed = True

cpg.root = OT()
'''cpg.server.start()'''
sslcherry.start(configFile='ot.conf')
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.