id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 10402,mysql backend connections left idle open,DirkDatzert,nobody,"Hi, I have a related issue which behaves like ticket #9878 . I query a model.objects during an AJAX jQuery Autocomplete call which receives an simple http-request, does an orm-related query of the db and reponses with a single http-response. Example view and urls are attached. I run Django-1.0.X SVN 9684 with python-mysql 1.2.2 oder 1.2.3b1, Python 2.4.2 on SLES10 and apache2-mod_python-3.1.3 under apache2-2.2.3. After one request the mysql db connection is left over in established mode on the client side and visible under SHOW PROCESSLIST via mysql cli as sleeping. Some threads in the internet told that this maybe a bug in python-mysql in relation to mod_python but an update of python-mysql to latest beta didn't resolve this. I have a second application running under the same apache2 construct on the same host which didn't shows this idle connections. I connection is opened and closed correctly after a single HTTP-request. Regards, Dirk",Bug,closed,"Database layer (models, ORM)",1.4,Normal,needsinfo,,pembo13@…,Accepted,0,0,0,0,0,0