﻿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
2770	[patch] django.contrib.auth.handlers.modpython doesn't send signals.request_*, leaks db connections	lec9@…	Malcolm Tredinnick	"The module django.contrib.auth.handlers.modpython does not send signals.request_started before it begins processing, and more importantly, doesn't send signals.request_finished once it's completed, which means that the callback established by the line """"""dispatcher.connect(connection.close, signal=signals.request_finished)"""""" in django.db's __init__.py is never called.

As such, the database connection is not closed (until the python interpreter is culled, eg when apache2 restarts) and is left to fester. I spotted this as I was using it to authenticate all access to an SVN repository, and ""svn diff"" was making so many requests that eventually postgres gave an error of ""connection limit exceeded for non-superusers"".

Patch to follow."	defect	closed	Contrib apps	dev	normal	fixed		gary.wilson@…	Unreviewed	1	0	0	0	0	0
