Hi all!

I have my turbogears project and also some other app that access the
models from turbogear.

In my app (not the turbogears project) I have many threads, and seems
that for each thread a connection is open.

My problem is, when a thread is finished, it does not release the
connection. So I quickly run out of connections.

How do I make my app free the per thread connections?

I'm using mysql as db.

Also, on the startart script of the app I've put some lines to load
the config like this:

import cherrypy
cherrypy.config.update(file='dev.cfg')

This way I keep using PackageHub on the models.

--
JP

Reply via email to