---------- Forwarded message ----------
From: João Paulo Fernandes Farias <[EMAIL PROTECTED]>
Date: Feb 12, 2006 3:32 PM
Subject: Threads and connections
To: [email protected]


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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to